Sha256: f3f41f2d0ae65d144c3a7711cb353bf3ceba9be768ae724fe775f28406ce0d20

Contents?: true

Size: 266 Bytes

Versions: 46

Compression:

Stored size: 266 Bytes

Contents

module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module String #:nodoc:
      module Inflections #:nodoc:
        def singular?
          singularize == self
        end
        def plural?
          pluralize == self
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
mongoid-0.8.10 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.9 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.8 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.7 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.6 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.5 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.4 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.3 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.2 lib/mongoid/extensions/string/inflections.rb
mongoid-0.8.1 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.10 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.9 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.8 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.7 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.6 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.5 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.4 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.3 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.2 lib/mongoid/extensions/string/inflections.rb
mongoid-0.7.1 lib/mongoid/extensions/string/inflections.rb