Sha256: cdc9b56092532d16f9049d9b8f9a6fc05c2037625d5c9e07bc52c25866773702

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

# # frozen_string_literal: true

module RailsDevtools
  module Components
    class ApplicationComponent < Phlex::HTML
      include Phlex::Rails::Helpers::TurboFrameTag
      include Phlex::Rails::Helpers::Routes
      include Phlex::Rails::Helpers::ClassNames
      include Phlex::Rails::Helpers::LinkTo
      include Phlex::Rails::Helpers::T
      include Phlex::Rails::Helpers::ContentFor
      include Phlex::Rails::Helpers::ButtonTo
      include Phlex::Rails::Helpers::ImageTag
      include Phlex::Rails::Helpers::DOMID

      if Rails.env.development?
        def before_template
          comment { "Before #{self.class.name}" }
          super
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_devtools-0.1.2 app/views/rails_devtools/components/application_component.rb
rails_devtools-0.1.1 app/views/rails_devtools/components/application_component.rb
rails_devtools-0.1.0 app/views/rails_devtools/components/application_component.rb