Sha256: f402ba09f14dfb8dc0ae37a35ff2bab03dbfe6436f2a7c1962a95fc6e8c520af
Contents?: true
Size: 505 Bytes
Versions: 6
Compression:
Stored size: 505 Bytes
Contents
require 'rails/engine' module Joosy def self.resources(namespaces=nil) Joosy::SprocketsHelper.joosy_resources(namespaces).to_json end module Rails class Engine < ::Rails::Engine cattr_accessor :resources self.resources = {} initializer 'joosy.extend.sprockets' do |app| ActiveSupport.on_load(:action_view) do app.assets.context_class.instance_eval do include ::Joosy::SprocketsHelper end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems