Sha256: 943794fd47f1a457327f3c4332dcf994f36548c3de3895405469b666f36dbbb0

Contents?: true

Size: 366 Bytes

Versions: 30

Compression:

Stored size: 366 Bytes

Contents

module Locomotive
  module Extensions
    module Asset
      module Vignette

        def vignette_url
          if self.image?
            if self.width < 85 && self.height < 85
              self.source.url
            else
              Locomotive::Dragonfly.resize_url(self.source, '85x85#')
            end
          end
        end

      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
locomotive_cms-2.4.1 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.4.0 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.3.1 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.3.0 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.2.3 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.2.2 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.2.1 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.2.0 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.1.4 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.1.3 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.1.2 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.1.1 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.1.0 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.0.3 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.0.2 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.0.1 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.0.0 app/models/locomotive/extensions/asset/vignette.rb
tribeca_cms-0.1.1 app/models/locomotive/extensions/asset/vignette.rb
tribeca_cms-2.0.0.rc12 app/models/locomotive/extensions/asset/vignette.rb
locomotive_cms-2.0.0.rc12 app/models/locomotive/extensions/asset/vignette.rb