Sha256: fc7a9ad39dc4de8337f25e8a5eab1827ca2fd497483ee0f91c5002a0ad2cc8f3

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

require 'rails/generators/base'

module AutoScopes
  module Generators
    class InstallGenerator < Rails::Generators::Base
    	source_root File.expand_path('config')

      desc 'Create a default files for auto_scopes with some use cases'

      def copy_initializer
        copy_file 'initializers/auto_scopes.rb', 'config/initializers/auto_scopes.rb'
      end

      def copy_auto_scopes_yml
        copy_file 'auto_scopes.yml', 'config/auto_scopes.yml'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auto_scopes-0.1.1 lib/generators/auto_scopes/install_generator.rb
auto_scopes-0.1.0 lib/generators/auto_scopes/install_generator.rb