Class: Images
- Inherits:
-
Object
- Object
- Images
- Defined in:
- lib/images.rb,
lib/images/engine.rb,
lib/images/builder.rb,
lib/images/options.rb,
lib/images/version.rb,
lib/images/url_helper.rb
Defined Under Namespace
Classes: Builder, Engine, Options, UrlHelper
Constant Summary collapse
- OPTION_KEYS =
[:whitelist]
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.generate ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/images.rb', line 9 def self.generate directory = ::Rails.root.join('app', 'assets', 'images') helper = Images::UrlHelper.new = Images::Options.new( Rails.configuration.images.whitelist ) Images::Builder.new({ directory: directory, helper: helper }).call() end |