Module: Humpyard::ActionController::Base
- Defined in:
- lib/humpyard/action_controller/base.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/humpyard/action_controller/base.rb', line 5 def self.included(base) base.module_eval do helper_attr :humpyard_user helper_attr :humpyard_logout_path end end |
Instance Method Details
#humpyard_logout_path ⇒ Object
16 17 18 |
# File 'lib/humpyard/action_controller/base.rb', line 16 def humpyard_logout_path "?user=" end |
#humpyard_user ⇒ Object
12 13 14 |
# File 'lib/humpyard/action_controller/base.rb', line 12 def humpyard_user current_user end |