Class: Pageflow::Generators::UserGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pageflow::Generators::UserGenerator
- Defined in:
- lib/generators/pageflow/user/user_generator.rb
Instance Method Summary collapse
Instance Method Details
#include_mixin ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/pageflow/user/user_generator.rb', line 8 def include_mixin inject_into_file 'app/models/user.rb', before: /end$/ do "\n include Pageflow::UserMixin\n" end end |