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
10
11
12
13
# File 'lib/paperclip/rails_environment.rb', line 7

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