Skip to content

Instantly share code, notes, and snippets.

@coffeeaddict
Created December 7, 2010 14:52
Show Gist options
  • Save coffeeaddict/731855 to your computer and use it in GitHub Desktop.
Save coffeeaddict/731855 to your computer and use it in GitHub Desktop.
modular controller
class LoginController < ApplicationController
skip_before_filter :check_login
skip_before_filter :check_rights
include LoginMethods
end
> LoginController.action_methods
=> #<Set: { ... }> # only action methods from ApplicationController show up here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment