module Rails::Generators::ResourceHelpers

def initialize(*args) # :nodoc:

:nodoc:
Set controller variables on initialization.
def initialize(*args) # :nodoc:
  super
  controller_name = name
  if options[:model_name]
    self.name = options[:model_name]
    assign_names!(name)
  end
  assign_controller_names!(controller_name.pluralize)
end