Sha256: 57cc1676a2127c746576aa11d3b833005864fb38d51a7542f00e6e7f9c756279
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
class Forgery def self.dictionaries @@dictionaries ||= Dictionaries.new end def self.formats @@formats ||= Formats.new end def self.rails_root if defined?(RAILS_ROOT) RAILS_ROOT elsif defined?(Rails) Rails.root.to_s end end def self.rails? !rails_root.nil? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgery-0.3.0 | lib/forgery/forgery.rb |