Class: Paperclip::RailsEnvironment

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/rails_environment.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.getObject


3
4
5
# File 'lib/paperclip/rails_environment.rb', line 3

def self.get
  new.get
end

Instance Method Details

#getObject


7
8
9
# File 'lib/paperclip/rails_environment.rb', line 7

def get
  Rails.env if rails_exists? && rails_environment_exists?
end