Module: Grandstand::Controller
- Defined in:
- lib/grandstand/controller.rb
Overview
The Grandstand::Controller mixin will add a number of ActionController and ActionView helper methods that will allow you to require a user and other cool stuff like that.
It’s not the most functional beast you’ve ever seen, but Grandstand aims to be as unobtrusive as possible. It doesn’t, for example, do anything to mess with how Rails is supposed to work.
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
9 10 11 |
# File 'lib/grandstand/controller.rb', line 9 def self.included(base) #:nodoc: base.helper_method :current_page, :current_user, :return_path end |