Sha256: 55e9baea9b1e356be644a290c13d66d35a0a887adf18c75149ca80aaa3f77a32

Contents?: true

Size: 442 Bytes

Versions: 6

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

require 'action_view'

module ::AmberComponent
  module Helpers
    # Contains methods for quickly rendering
    # components defined under the root namespace `Object`.
    module ComponentHelper
      @__amber_component_helper_module = self
    end
  end
end

class ::ActionView::Base
  # Add those convenience methods to all
  # controllers and views.
  include ::AmberComponent::Helpers::ComponentHelper
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amber_component-1.2.0 lib/amber_component/helpers/component_helper.rb
amber_component-1.1.1 lib/amber_component/helpers/component_helper.rb
amber_component-1.1.0 lib/amber_component/helpers/component_helper.rb
amber_component-1.0.0 lib/amber_component/helpers/component_helper.rb
amber_component-0.0.5 lib/amber_component/helpers/component_helper.rb
amber_component-0.0.4 lib/amber_component/helpers/component_helper.rb