Class: Auth
- Inherits:
-
Object
- Object
- Auth
- Defined in:
- lib/syncassets_r2.rb
Class Method Summary collapse
Class Method Details
.env ⇒ Object
6 7 8 |
# File 'lib/syncassets_r2.rb', line 6 def self.env rails_env = (Rails.version < "2.1.2") ? RAILS_ENV : Rails.env end |
.root ⇒ Object
2 3 4 5 |
# File 'lib/syncassets_r2.rb', line 2 def self.root rails_root = (Rails.version < "2.1.2") ? RAILS_ROOT : Rails.root YAML::load(IO.read(File.join(rails_root, 'config', 'aws.yml'))) end |