Sha256: 06031416083b2a1f783a3cc6afc745927cf44358f0e53e344809b1c81801a39f

Contents?: true

Size: 470 Bytes

Versions: 14

Compression:

Stored size: 470 Bytes

Contents

module Rbexy
  module Rails
    module ControllerHelper
      extend ActiveSupport::Concern
      include ComponentContext

      included do
        helper_method :rbexy_context, :create_context, :use_context
      end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rbexy-2.0.0.rc5 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.rc4 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.rc3 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.rc2 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.rc1 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta9 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta8 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta7 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta6 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta5 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta4 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta3 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta2 lib/rbexy/rails/controller_helper.rb
rbexy-2.0.0.beta1 lib/rbexy/rails/controller_helper.rb