Skip to content

Instantly share code, notes, and snippets.

@clyfe
Created February 22, 2011 08:06
Show Gist options
  • Save clyfe/838359 to your computer and use it in GitHub Desktop.
Save clyfe/838359 to your computer and use it in GitHub Desktop.
class Campaign < ActiveRecord::Base
has_many :subscriptions
has_many :territories, :through => :subscriptions
...
def self.authorized_for?(options = {})
return true if options[:column].present?
super(options)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment