No commit activity in last 3 years
No release in over 3 years
RailheadAutoUser is a Ruby on Rails plugin that automatically adds current_user to modelsk.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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.