Module: RailsResponsiveImages
- Defined in:
- lib/rails_responsive_images.rb,
lib/rails_responsive_images/engine.rb,
lib/rails_responsive_images/version.rb,
app/models/rails_responsive_images/image.rb,
lib/rails_responsive_images/configuration.rb,
app/controllers/rails_responsive_images/assets_controller.rb
Defined Under Namespace
Classes: AssetsController, Configuration, Engine, Image
Constant Summary collapse
- VERSION =
'0.1.7'
Class Method Summary collapse
- .configuration ⇒ Object
- .configuration=(new_configuration) ⇒ Object
-
.configure {|configuration| ... } ⇒ Object
Yields the global configuration to a block.
- .reset ⇒ Object
Class Method Details
.configuration ⇒ Object
7 8 9 |
# File 'lib/rails_responsive_images.rb', line 7 def self.configuration @configuration ||= RailsResponsiveImages::Configuration.new end |
.configuration=(new_configuration) ⇒ Object
11 12 13 |
# File 'lib/rails_responsive_images.rb', line 11 def self.configuration=(new_configuration) @configuration = new_configuration end |
.configure {|configuration| ... } ⇒ Object
Yields the global configuration to a block.
Example:
RailsResponsiveImages::Rails.configure do |config|
config.sizes = [767, 991, 1999]
end
21 22 23 |
# File 'lib/rails_responsive_images.rb', line 21 def self.configure yield configuration if block_given? end |
.reset ⇒ Object
25 26 27 |
# File 'lib/rails_responsive_images.rb', line 25 def self.reset @configuration = nil end |