Sha256: ddc342cdbdd638df0b75aed41e15cc91f42ce0972f521677ff7b6eca336bab42

Contents?: true

Size: 342 Bytes

Versions: 12

Compression:

Stored size: 342 Bytes

Contents

require 'rails/generators'

# Generates gem initializer
#
#   rails g smart_table:init
#

module SmartTable
  class InitGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    def copy_initializer
      copy_file 'smart_table_initializer.rb', 'config/initializers/smart_table.rb'
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_table-0.0.12 ./lib/generators/init_generator.rb
smart_table-0.0.11 ./lib/generators/init_generator.rb
smart_table-0.0.10 ./lib/generators/init_generator.rb
smart_table-0.0.9 ./lib/generators/init_generator.rb
smart_table-0.0.8 ./lib/generators/init_generator.rb
smart_table-0.0.7 ./lib/generators/init_generator.rb
smart_table-0.0.6 ./lib/generators/init_generator.rb
smart_table-0.0.5 ./lib/generators/init_generator.rb
smart_table-0.0.4 ./lib/generators/init_generator.rb
smart_table-0.0.3 ./lib/generators/init_generator.rb
smart_table-0.0.2 ./lib/generators/init_generator.rb
smart_table-0.0.1 ./lib/generators/init_generator.rb