Sha256: 8342bd62264f7079e7a61be2da747b2abc95d8f747b2007af43d1f39f839e516

Contents?: true

Size: 528 Bytes

Versions: 6

Compression:

Stored size: 528 Bytes

Contents

module MightyGrid
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

      desc "Copies MightyGrid configuration and locale files to your application."

      def copy_config_file
        template 'mighty_grid_config.rb', 'config/initializers/mighty_grid_config.rb'
      end

      def copy_locale_file
        copy_file '../../../../config/locales/en.yml', 'config/locales/mighty_grid.en.yml'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mighty_grid-0.6.0 lib/generators/mighty_grid/install_generator.rb
mighty_grid-0.5.0 lib/generators/mighty_grid/install_generator.rb
mighty_grid-0.4.0 lib/generators/mighty_grid/install_generator.rb
mighty_grid-0.3.3 lib/generators/mighty_grid/install_generator.rb
mighty_grid-0.3.2 lib/generators/mighty_grid/install_generator.rb
mighty_grid-0.3.1 lib/generators/mighty_grid/install_generator.rb