Created
October 13, 2011 18:56
-
-
Save sbounmy/1285146 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_many :specialty_taggings | |
has_many :specialties, :through => :specialty_taggings, :source => :tag | |
has_many :notification_tags, :through => :specialty_taggings, :source => :tag | |
def notification_tags_with_all | |
all_notification_tags ? Tag.public.for_picker : notification_tags_without_all | |
end | |
class ActiveRecord::NamedScope::Scope | |
def loaded? | |
false | |
end | |
end | |
alias_method_chain :notification_tags, :all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment