Sha256: 67fca90aa472328afdc84c4eab3d385d45eb28f8adeae0edf0acd35d61b7212e
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module PaperclipDatabase # This function only appears in Rails >= 3.2.1, so define our own copy here def self.deconstantize(path) if Gem::Version.new(::Rails::VERSION::STRING) >= Gem::Version.new('3.2.1') path.deconstantize else path.to_s[0...(path.rindex('::') || 0)] end end end
Version data entries
3 entries across 3 versions & 1 rubygems