Module: Restful::Rails::ActiveRecord::Configuration::ClassMethods
- Defined in:
- lib/restful/rails/active_record/configuration.rb
Instance Method Summary collapse
-
#restful_publish(*fieldnames) ⇒ Object
In the form: .
Instance Method Details
#restful_publish(*fieldnames) ⇒ Object
In the form:
Person.restful_publish(:name, :pets => [:name, :species])
If pet already has configured the api with restful_publish, you would
get the default nested attributes. In the above example, these would be
overriden.
27 28 29 |
# File 'lib/restful/rails/active_record/configuration.rb', line 27 def restful_publish(*fieldnames) # declarative setter method self.restful_config = Restful.cfg(*fieldnames) end |