Sha256: 3cc9a93d8ae8b8ac598d7af1f94045fd468fc066b49882ece331e6938f334330

Contents?: true

Size: 302 Bytes

Versions: 7

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Component
    module ComponentHelper

      def component(name, options = {})
        name = name.component_path if name.respond_to?(:component_path)
        "#{name}_component".classify.constantize.render(self, options)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lite-component-1.0.8 app/helpers/lite/component/component_helper.rb
lite-component-1.0.7 app/helpers/lite/component/component_helper.rb
lite-component-1.0.6 app/helpers/lite/component/component_helper.rb
lite-component-1.0.5 app/helpers/lite/component/component_helper.rb
lite-component-1.0.4 app/helpers/lite/component/component_helper.rb
lite-component-1.0.3 app/helpers/lite/component/component_helper.rb
lite-component-1.0.2 app/helpers/lite/component/component_helper.rb