Sha256: 6dfa3b9d3e0328b35f6a872a36ea3a06a9deff8b2335920b69f241e346a0e565
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
class Tasks::InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc 'Install the default configurations for Tasks' def copy_initializer template 'tasks.rb', 'config/initializers/tasks.rb' end def add_route route "mount Tasks::Engine, at: '/tasks'" end def add_helpers inject_into_file 'app/controllers/application_controller.rb', "\n helper Tasks::Engine.helpers", after: 'protect_from_forgery with: :exception' end def copy_migrations rake 'tasks:install:migrations' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | lib/generators/tasks/install/install_generator.rb |