Sha256: b6a775f5c4e8cee350eb38f5bd1b97a01c2a83a7ce322ccbf661fb1b62b55ac2

Contents?: true

Size: 426 Bytes

Versions: 7

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

# Abstract class which should serve as a superclass
# for all your custom components in this app.
#
# @abstract Subclass to create a new component.
class ::ApplicationComponent < ::AmberComponent::Base
  # Include your global application helper.
  include ::ApplicationHelper
  # Include the helper methods for your application's
  # routes.
  include ::Rails.application.routes.url_helpers
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amber_component-1.2.0 lib/generators/amber_component/templates/application_component.rb
amber_component-1.1.1 lib/generators/amber_component/templates/application_component.rb
amber_component-1.1.0 lib/generators/amber_component/templates/application_component.rb
amber_component-1.0.0 lib/generators/amber_component/templates/application_component.rb
amber_component-0.0.5 lib/generators/amber_component/templates/application_component.rb
amber_component-0.0.4 lib/generators/amber_component/templates/application_component.rb
amber_component-0.0.3 lib/generators/amber_component/templates/application_component.rb