Class: Merb::Generators::ResourceControllerGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/data_mapper_resource_controller.rb

Instance Method Summary collapse

Instance Method Details

#params_for_getObject

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

#propertiesObject

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