Sha256: 5e340d943d740404488cd0bc858aca0aaeb0789d693673963503b7bbe425e4e5

Contents?: true

Size: 532 Bytes

Versions: 6

Compression:

Stored size: 532 Bytes

Contents

module ExpressTemplates
  module Components
    module Capabilities
      module Adoptable
        # Adoptable adds the capability for a child to refer
        # to its parent.  This is used by more complex
        # components which are intended to work together
        # such as form components where form elements may need
        # to use information known only to the parent.

        def self.included(base)
          base.class_eval do
            attr_accessor :parent
          end
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
express_admin-1.2.1 vendor/gems/express_templates/lib/express_templates/components/capabilities/adoptable.rb
express_admin-1.2.0 vendor/gems/express_templates/lib/express_templates/components/capabilities/adoptable.rb
express_templates-0.5.0 lib/express_templates/components/capabilities/adoptable.rb
express_templates-0.4.2 lib/express_templates/components/capabilities/adoptable.rb
express_templates-0.4.1 lib/express_templates/components/capabilities/adoptable.rb
express_templates-0.4.0 lib/express_templates/components/capabilities/adoptable.rb