Method: Cyborg::Plugin#config

Defined in:
lib/cyborg/plugin.rb

#config(options) ⇒ Object



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/cyborg/plugin.rb', line 101

def config(options)

  options = {
    production_asset_root: nil,
    destination:   "public/",
    root:          @gem.full_gem_path,
    version:       @gem.version.to_s,
    gem_name:      @gem.name,
    paths: {
      stylesheets: "app/assets/stylesheets/#{name}",
      javascripts: "app/assets/javascripts/#{name}",
      images:      "app/assets/images/#{name}",
      svgs:        "app/assets/svgs/#{name}",
    }
  }.merge(options)

  options.each do |k,v|
    set_instance(k.to_s,v)
  end
end