class EffectiveResources::Generators::InstallGenerator
Public Instance Methods
copy_application_templates()
click to toggle source
# File lib/generators/effective_resources/install_generator.rb, line 12 def copy_application_templates [:edit, :index, :new, :show].each do |file| template ('../' * 3) + "app/views/application/#{file}.html.haml", "app/views/application/#{file}.html.haml" end end
copy_initializer()
click to toggle source
# File lib/generators/effective_resources/install_generator.rb, line 8 def copy_initializer template ('../' * 3) + 'config/effective_resources.rb', 'config/initializers/effective_resources.rb' end