Class: Pageflow::Generators::UserGenerator Private
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pageflow::Generators::UserGenerator
- Defined in:
- lib/generators/pageflow/user/user_generator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #include_mixin ⇒ Object private
Instance Method Details
#include_mixin ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 12 13 |
# File 'lib/generators/pageflow/user/user_generator.rb', line 9 def include_mixin inject_into_file 'app/models/user.rb', before: /end$/ do "\n include Pageflow::UserMixin\n" end end |