Created
August 1, 2013 14:41
-
-
Save AMHOL/6132041 to your computer and use it in GitHub Desktop.
Initializer for making rails acts-as-taggable-on v2.1.1 case-insensitive (config/initializers/acts_as_taggable_on.rb)
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
ActsAsTaggableOn::TagList.delimiter = '|' | |
# https://github.com/mbleigh/acts-as-taggable-on/blob/v2.1.1/lib/acts_as_taggable_on/utils.rb | |
# This is a hack to remove case-insensitivity on the acts-as-taggable (v2.1.1) | |
# RE: Ticket - http://redmine.cirrus-connect.com/issues/249 | |
module ActsAsTaggableOn::Utils::OverallMethods | |
private | |
def like_operator | |
using_postgresql? ? 'LIKE' : 'LIKE BINARY' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment