Skip to content

Commit

Permalink
Add --redux class option to base generator
Browse files Browse the repository at this point in the history
Without this class option, client/package.json will be unable
to access the `options.redux?` method and will not include
redux-specific packages.
  • Loading branch information
robwise committed Nov 6, 2015
1 parent 4b65c05 commit 1d42279
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/generators/react_on_rails/base_generator.rb
Expand Up @@ -8,6 +8,12 @@ class BaseGenerator < Rails::Generators::Base
hide!
source_root(File.expand_path("../templates", __FILE__))

# --redux
class_option :redux,
type: :boolean,
default: false,
desc: "Install Redux gems and Redux version of Hello World Example",
aliases: "-R"
# --server-rendering
class_option :server_rendering,
type: :boolean,
Expand Down

0 comments on commit 1d42279

Please sign in to comment.