Sha256: d797a1140c2b74fed59ae9aaf514f229168bbd8c3375bb1aa1b17db4b35cc5fb

Contents?: true

Size: 468 Bytes

Versions: 122

Compression:

Stored size: 468 Bytes

Contents

module EffectiveDatatables
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "Creates an EffectiveDatatables initializer in your application."

      source_root File.expand_path("../../templates", __FILE__)

      def copy_initializer
        template "effective_datatables.rb", "config/initializers/effective_datatables.rb"
      end

      def show_readme
        readme "README" if behavior == :invoke
      end
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
effective_datatables-1.0.1 lib/generators/effective_datatables/install_generator.rb
effective_datatables-1.0.0 lib/generators/effective_datatables/install_generator.rb