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 ActiveRecord::Base.whitelist_attributes=true
but no luck, no such method exists in ActiveRecord::Base,
so what's the class of config.active_record, and when
setting whitelist_attributes = true,
in what point it invokes some method of active_record to make
it whitelist_attributes aware?
Thanks.
Best Regards

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to