Class: Flipflop::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/flipflop/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#configure_dashboardObject



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_generatorsObject



6
7
8
9
10
# File 'lib/generators/flipflop/install/install_generator.rb', line 6

def invoke_generators
  Flipflop::FeaturesGenerator.new([], options).invoke_all
  Flipflop::MigrationGenerator.new([], options).invoke_all
  Flipflop::RoutesGenerator.new([], options).invoke_all
end