Skip to content

Instantly share code, notes, and snippets.

@toamitkumar
Created May 2, 2011 15:44
Show Gist options
  • Save toamitkumar/951803 to your computer and use it in GitHub Desktop.
Save toamitkumar/951803 to your computer and use it in GitHub Desktop.
Controller callbacks
$ rails console
Loading development environment (Rails 3.0.6)
ruby-1.8.7-p334 :001 > class; MyTestController < ApplicationController; end
ruby-1.8.7-p334 :003 > MyTestController._process_action_callbacks.map{|c| c.filter}.compact
=> [:verify_authenticity_token, :authenticate_user!, :first_login?, :secure_from_admin?, :require_current_client]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment