Class: Merb::Generators::ResourceControllerGenerator
- Inherits:
-
Object
- Object
- Merb::Generators::ResourceControllerGenerator
- Defined in:
- lib/generators/data_mapper_resource_controller.rb
Instance Method Summary collapse
-
#params_for_get ⇒ Object
TODO: fix this for Datamapper, so that it returns the primary keys for the model.
-
#properties ⇒ Object
TODO: implement this for Datamapper so that we get the model properties.
Instance Method Details
#params_for_get ⇒ Object
TODO: fix this for Datamapper, so that it returns the primary keys for the model
3 4 5 |
# File 'lib/generators/data_mapper_resource_controller.rb', line 3 def params_for_get "params[:id]" end |
#properties ⇒ Object
TODO: implement this for Datamapper so that we get the model properties
8 9 10 |
# File 'lib/generators/data_mapper_resource_controller.rb', line 8 def properties [] end |