Permalink
Browse files

Fixed `self.rule` method being defined inside itself

  • Loading branch information...
1 parent 95ea1eb commit c8ce1679c8772aee78a8e24be128cc28d5afe183 @ndbroadbent ndbroadbent 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 c8ce167

Please sign in to comment.