Sha256: 24c476babd2f2c6e07da286b4c1abbe0703e143963062cf05878b646d945656d
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
# -*- coding: utf-8 -*- module Lazyload module Rails # Stores runtime configuration information. # # Example settings # Lazyload::Rails.configure do |c| # c.placeholder = "/public/img/grey.gif" # end class Configuration # The placeholder image to put into the img src attribute # (default: 1×1 pixel grey gif at # "http://www.appelsiini.net/projects/lazyload/img/grey.gif"). def placeholder @placeholder end def placeholder=(new_placeholder) @placeholder = new_placeholder end # Set default settings def initialize @placeholder = "http://www.appelsiini.net/projects/lazyload/img/grey.gif" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lazyload-rails-0.3.1 | lib/lazyload-rails/configuration.rb |
lazyload-rails-0.3.0 | lib/lazyload-rails/configuration.rb |
lazyload-rails-0.2.0 | lib/lazyload-rails/configuration.rb |