Sha256: 3aef8e14fb3637089dae168137f7ef22f3c4a84f88b0887d6809c456b96c34ca
Contents?: true
Size: 1011 Bytes
Versions: 5
Compression:
Stored size: 1011 Bytes
Contents
module Puffer module Extensions module Rails module Engine module Configuration extend ActiveSupport::Concern included do alias_method_chain :paths, :components end module InstanceMethods def paths_with_components @paths ||= begin paths = paths_without_components paths.add 'app/components', :eager_load => true paths end end end end extend ActiveSupport::Concern included do initializer :"puffer.add_view_paths", :after => :add_view_paths do |app| Puffer::Component::Base.prepend_view_path paths["app/components"].existent if paths["app/components"] end end end end end end Rails::Engine::Configuration.send :include, Puffer::Extensions::Rails::Engine::Configuration Rails::Engine.send :include, Puffer::Extensions::Rails::Engine
Version data entries
5 entries across 5 versions & 1 rubygems