diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-09 10:50:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-09 10:50:42 +0000 |
commit | 2072669769d24248789366e6552231c1cac5695d (patch) | |
tree | 260536878a7abf3983fba7f7905e93b6113f99a2 /app/models/enumeration.rb | |
parent | 93c2b92a4b5b7003be3113b5d9baf2a0448402a8 (diff) | |
download | redmine-2072669769d24248789366e6552231c1cac5695d.tar.gz redmine-2072669769d24248789366e6552231c1cac5695d.zip |
Fixed: Setting issue attributes from mail should be case-insensitive (#8759).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6199 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/enumeration.rb')
-rw-r--r-- | app/models/enumeration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 3b7a434a7..71afe8fee 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -32,6 +32,7 @@ class Enumeration < ActiveRecord::Base named_scope :shared, :conditions => { :project_id => nil } named_scope :active, :conditions => { :active => true } + named_scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}} def self.default # Creates a fake default scope so Enumeration.default will check |