class Hobo::ResourceGenerator

Public Instance Methods

generate_hobo_controller() click to toggle source
# File lib/generators/hobo/resource/resource_generator.rb, line 12
def generate_hobo_controller
  invoke 'hobo:controller', [name.pluralize], options
end
generate_hobo_model() click to toggle source
# File lib/generators/hobo/resource/resource_generator.rb, line 16
def generate_hobo_model
  # is there any better way to pass attributes?
  attr = attributes.map{|a| "#{a.name}:#{a.type}"}
  invoke 'hobo:model', [name, attr], options
end