Sha256: f2408879fd1b7087a489c5377b7b4d58fa39dec720035ae0e2e119c7572f2945
Contents?: true
Size: 636 Bytes
Versions: 392
Compression:
Stored size: 636 Bytes
Contents
module EffectiveResources module Generators class InstallGenerator < Rails::Generators::Base desc 'Creates an EffectiveResources initializer in your application.' source_root File.expand_path('../../templates', __FILE__) def copy_initializer template ('../' * 3) + 'config/effective_resources.rb', 'config/initializers/effective_resources.rb' end 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 end end end
Version data entries
392 entries across 392 versions & 1 rubygems