Sha256: 25b14efb8b64502dfc3cf8ecf54b2c0cc767feb344a51e759fffb9dcf88670d4

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 Bytes

Contents

class Premailer
  module Rails
    module CSSLoaders
      module CacheLoader
        extend self

        def load(url)
          unless development_env?
            CSSHelper.cache[url]
          end
        end

        def development_env?
          defined?(::Rails) and ::Rails.env.development?
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/cache_loader.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/cache_loader.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/premailer-rails-1.8.2/lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.8.2 lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.8.1 lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.8.0 lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.7.0 lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.6.1 lib/premailer/rails/css_loaders/cache_loader.rb
premailer-rails-1.6.0 lib/premailer/rails/css_loaders/cache_loader.rb