Class: Merb::Generators::ResourceGenerator

Inherits:
ComponentGenerator show all
Defined in:
lib/merb-gen/resource.rb

Instance Method Summary collapse

Methods inherited from ComponentGenerator

source_root

Methods inherited from Generator

#initialize, source_root, #with_modules

Constructor Details

This class inherits a constructor from Merb::Generators::Generator

Instance Method Details

#controller_nameObject



20
21
22
# File 'lib/merb-gen/resource.rb', line 20

def controller_name
  name.pluralize
end

#model_nameObject



24
25
26
# File 'lib/merb-gen/resource.rb', line 24

def model_name
  name.singularize
end