class Rarocrud::BrancoGenerator
Attributes
teste[R]
Public Instance Methods
copy_initializer_file()
click to toggle source
# File lib/generators/rarocrud/branco/branco_generator.rb, line 8 def copy_initializer_file @model = Module.const_get(file_name.camelize) @action = acao template 'template.rb', "app/views/#{@model.name.pluralize.underscore.to_sym}/_template.html.erb", @model,@action template 'action.rb', "app/views/#{@model.name.pluralize.underscore.to_sym}/#{@action}.html.erb", @model,@action template 'action_partial.rb', "app/views/#{@model.name.pluralize.underscore.to_sym}/_#{@action}.html.erb", @model,@action end