Class: Pageflow::Generators::UserGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pageflow/user/user_generator.rb

Instance Method Summary collapse

Instance Method Details

#include_mixinObject


6
7
8
9
10
# File 'lib/generators/pageflow/user/user_generator.rb', line 6

def include_mixin
  inject_into_file 'app/models/user.rb', before: /end$/ do
    "\n  include Pageflow::UserMixin\n"
  end
end