Class: Bpluser::UserGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bpluser::UserGenerator
- Defined in:
- lib/generators/bpluser/user_generator.rb
Instance Method Summary collapse
Instance Method Details
#insert_into_users ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/bpluser/user_generator.rb', line 13 def insert_into_users return if File.read(user_model_path).include?('Bpluser') insert_into_file user_model_path, after: 'include Blacklight::User' do "\n\n # Adds Bpluser core funtionality" \ "\n include Bpluser::Users" \ "\n self.table_name = 'users'\n" end end |