Sha256: 2aeb5df469bc7b2c960b673324b778b0f737b463ddab1e1cb563b0a73faa91a4
Contents?: true
Size: 368 Bytes
Versions: 20
Compression:
Stored size: 368 Bytes
Contents
module Paperclip class RailsEnvironment def self.get new.get end def get if rails_exists? && rails_environment_exists? Rails.env else nil end end private def rails_exists? Object.const_defined?(:Rails) end def rails_environment_exists? Rails.respond_to?(:env) end end end
Version data entries
20 entries across 20 versions & 5 rubygems