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



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