Skip to content

Commit

Permalink
Merge pull request #16 from hughevans/master
Browse files Browse the repository at this point in the history
Locale #find_by_name! Case Sensitivity
  • Loading branch information
thomasdarde committed Aug 4, 2012
2 parents 5f61542 + bb1937a commit 02e6198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/tolk/locales_controller.rb
Expand Up @@ -40,7 +40,7 @@ def create
private

def find_locale
@locale = Tolk::Locale.find_by_name!(params[:id])
@locale = Tolk::Locale.where('UPPER(name) = UPPER(?)', params[:id]).first!
end
end
end
2 changes: 1 addition & 1 deletion app/controllers/tolk/searches_controller.rb
Expand Up @@ -9,7 +9,7 @@ def show
private

def find_locale
@locale = Tolk::Locale.find_by_name!(params[:locale])
@locale = Tolk::Locale.where('UPPER(name) = UPPER(?)', params[:locale]).first!
end
end
end

0 comments on commit 02e6198

Please sign in to comment.