Sha256: 808976163b46cb4934e367c16729a4b88aaef354ec48d0ddb01a6b2e8e85682e

Contents?: true

Size: 163 Bytes

Versions: 10

Compression:

Stored size: 163 Bytes

Contents

class AuthorComponent
  include Rafters::Component

  # Attributes
  attribute :author

  private

  def author
    @author ||= Author.find(settings.id)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rafters-1.2.1 spec/dummy/app/components/author/author_component.rb
rafters-1.2.0 spec/dummy/app/components/author/author_component.rb
rafters-1.1.0 spec/dummy/app/components/author/author_component.rb
rafters-1.0.0 spec/dummy/app/components/author/author_component.rb
rafters-0.2.0 spec/dummy/app/components/author/author_component.rb
rafters-0.1.3 spec/dummy/app/components/author/author_component.rb
rafters-0.1.2 spec/dummy/app/components/author/author_component.rb
rafters-0.1.1 spec/dummy/app/components/author/author_component.rb
rafters-0.1.0 spec/dummy/app/components/author/author_component.rb
rafters-0.0.5 spec/dummy/app/components/author/author_component.rb