Sha256: bb6adad240ec8c0c247cbc36ac82be4ec883a1a68227a103c2c02aaf07cd1b6e
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require 'rails/generators/base' module AutoScopes module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../config', __FILE__) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auto_scopes-0.1.2 | lib/generators/auto_scopes/install_generator.rb |