RailheadAutouser¶ ↑
RailheadAutouser is a Ruby on Rails plugin that automatically sets current_user to models.
Installation¶ ↑
Add to your Gemfile:
gem 'railhead_autouser'
Usage¶ ↑
Setup user in your migration:
create_table :table_name do |f| f.references :user ... end
Add the following line to your controller:
auto_user
License¶ ↑
Copyright © 2008-2015 Bence Nagy (bence.nagy@gmail.com), released under the MIT license.