Re: [Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-19 Thread femto Zheng
Hello, thanks very much. On Wed, Aug 15, 2012 at 10:49 PM, Jordon Bedwell wrote: > On Wednesday, 15 August 2012 05:04:44 UTC-5, femto wrote: >> >> Hello all, I'm developing a sinatra application and loads ActiveRecord >> in, >> sometimes it will just report warning for mass for attributes, >> how

Re: [Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-16 Thread Jordon Bedwell
On Wednesday, 15 August 2012 05:04:44 UTC-5, femto wrote: > > Hello all, I'm developing a sinatra application and loads ActiveRecord in, > sometimes it will just report warning for mass for attributes, > how can I enable it in non-Rails environment? > checked in rails code, it's config.active_reco

[Rails] How to enable activerecord whitelist_attributes in non-Rails environment?

2012-08-15 Thread femto Zheng
Hello all, I'm developing a sinatra application and loads ActiveRecord in, sometimes it will just report warning for mass for attributes, how can I enable it in non-Rails environment? checked in rails code, it's config.active_record.whitelist_attributes = true, so I add to my top code of sinatra Ac