Method: Cyborg::Plugin#assets
- Defined in:
- lib/cyborg/plugin.rb
#assets(options = {}) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/cyborg/plugin.rb', line 63 def assets(={}) assets = [] if [:select_assets] assets.push @svgs if [:svg] assets.push @stylesheets if [:css] assets.push @javascripts if [:js] else assets = [@svgs, @stylesheets, @javascripts] end assets end |