lib/forgery/forgery.rb in forgery-0.3.0 vs lib/forgery/forgery.rb in forgery-0.3.1
- old
+ new
@@ -7,13 +7,13 @@
def self.formats
@@formats ||= Formats.new
end
def self.rails_root
- if defined?(RAILS_ROOT)
- RAILS_ROOT
- elsif defined?(Rails)
+ if defined?(Rails)
Rails.root.to_s
+ elsif defined?(RAILS_ROOT)
+ RAILS_ROOT
end
end
def self.rails?
!rails_root.nil?