Adding support for mass_assign_any_attribute config option and refactoring non-api methods into private areas of modules

This commit is contained in:
Sam Lown 2010-09-18 15:19:15 +02:00
parent 97347e70e3
commit 1d1d815435
10 changed files with 124 additions and 42 deletions

View file

@ -9,11 +9,11 @@ module CouchRest
included do
add_config :model_type_key
add_config :allow_dynamic_properties
add_config :mass_assign_any_attribute
configure do |config|
config.model_type_key = 'model'
config.allow_dynamic_properties = false
config.mass_assign_any_attribute = false
end
end