Class: Images

Inherits:
Object
  • Object
show all
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

.generateObject



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

  options = Images::Options.new(
    Rails.configuration.images.whitelist
  )

  Images::Builder.new({
    directory: directory,
    helper: helper
  }).call(options)
end