Sha256: a5381e0cde4105d5320ea2feac51576f80637f346644dc0f490eaf4cd73f1240
Contents?: true
Size: 357 Bytes
Versions: 92
Compression:
Stored size: 357 Bytes
Contents
require 'rails/generators' module Pageflow module Generators class UserGenerator < Rails::Generators::Base desc "Injects the Pageflow::User mixin into the User class." def include_mixin inject_into_file 'app/models/user.rb', before: /end$/ do "\n include Pageflow::UserMixin\n" end end end end end
Version data entries
92 entries across 92 versions & 1 rubygems