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

Version Path
effective_resources-2.27.9 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.8 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.7 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.6 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.5 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.4 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.3 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.2 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.1 lib/generators/effective_resources/install_generator.rb
effective_resources-2.27.0 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.5 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.4 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.3 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.2 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.1 lib/generators/effective_resources/install_generator.rb
effective_resources-2.26.0 lib/generators/effective_resources/install_generator.rb
effective_resources-2.25.16 lib/generators/effective_resources/install_generator.rb
effective_resources-2.25.15 lib/generators/effective_resources/install_generator.rb
effective_resources-2.25.14 lib/generators/effective_resources/install_generator.rb
effective_resources-2.25.13 lib/generators/effective_resources/install_generator.rb