Class: FeatureGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- FeatureGenerator
- Includes:
- Templator
- Defined in:
- lib/generators/feature/feature_generator.rb
Constant Summary collapse
- ALL_ACTIONS =
%w(index new show edit delete)
Instance Method Summary collapse
Methods included from Templator
Instance Method Details
#feature ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/generators/feature/feature_generator.rb', line 18 def feature validate @user = User.new self, [:user] create_steps_file actions.each do |action| @action = action create_feature(table_name, action) create_steps(action) end end |