Class: Flipflop::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Flipflop::InstallGenerator
- Defined in:
- lib/generators/flipflop/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#configure_dashboard ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/flipflop/install/install_generator.rb', line 12 def configure_dashboard environment <<-CONFIG # Replace this with your own 'before_action' filter in ApplicationController # to implement access control for the Flipflop dashboard, or provide a # filter as lambda directly. config.flipflop.dashboard_access_filter = :require_development CONFIG end |
#invoke_generators ⇒ Object
6 7 8 9 10 |
# File 'lib/generators/flipflop/install/install_generator.rb', line 6 def invoke_generators Flipflop::FeaturesGenerator.new([], ).invoke_all Flipflop::MigrationGenerator.new([], ).invoke_all Flipflop::RoutesGenerator.new([], ).invoke_all end |