Sha256: 322a92dc694cc980ca3200e8301513c5ba5c06617bb513f781773ae36d86136a

Contents?: true

Size: 431 Bytes

Versions: 5

Compression:

Stored size: 431 Bytes

Contents

require "active_support/concern"

module Rbexy
  module Rails
    module ControllerHelper
      extend ActiveSupport::Concern

      def rbexy_component_provider; end

      class_methods do
        def inherited(klass)
          super
          Rbexy.configuration.template_paths.each do |path|
            prepend_view_path(Rbexy::Rails::ComponentTemplateResolver.new(path))
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rbexy-1.0.2 lib/rbexy/rails/controller_helper.rb
rbexy-1.0.1 lib/rbexy/rails/controller_helper.rb
rbexy-1.0.0 lib/rbexy/rails/controller_helper.rb
rbexy-0.3.1 lib/rbexy/rails/controller_helper.rb
rbexy-0.3.0 lib/rbexy/rails/controller_helper.rb