Sha256: 59dd823cc1162e1ddf23fa7cf98e50e8efc291bd31576cb817793deac29cb83d

Contents?: true

Size: 152 Bytes

Versions: 10

Compression:

Stored size: 152 Bytes

Contents

class PostComponent
  include Rafters::Component

  attribute :post

  private

  def post
    @post ||= (settings.post || controller(:post))
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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