Sha256: ec30f4c08a852e88aa6dc8289531793a57ac3b846c03c5d82c7cd9c95d4adae9
Contents?: true
Size: 491 Bytes
Versions: 8
Compression:
Stored size: 491 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Symbol #:nodoc: module Inflections #:nodoc: REVERSALS = { :asc => :desc, :ascending => :descending, :desc => :asc, :descending => :ascending } def invert REVERSALS[self] end def singular? to_s.singular? end def plural? to_s.plural? end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems