Permalink
Browse files

Merge pull request #272 from ndbroadbent/master

`self.rule` was being defined inside itself...
  • Loading branch information...
2 parents 95ea1eb + c8ce167 commit 408b9c3a86da51dd5b1f7e58b314f19664d26d8e @kuroda kuroda committed Oct 31, 2012
Showing with 7 additions and 9 deletions.
  1. +7 −9 lib/rails_i18n/common_pluralizations/one_two_other.rb
@@ -5,15 +5,13 @@ module RailsI18n
module Pluralization
module OneTwoOther
def self.rule
- def self.rule
- lambda do |n|
- if n == 1
- :one
- elsif n == 2
- :two
- else
- :other
- end
+ lambda do |n|
+ if n == 1
+ :one
+ elsif n == 2
+ :two
+ else
+ :other
end
end
end

0 comments on commit 408b9c3

Please sign in to comment.