Sha256: c5df8f136782ef6c9a9053740fe98ea9885f221fa55b71dc5d2da8ec270a6227

Contents?: true

Size: 138 Bytes

Versions: 10

Compression:

Stored size: 138 Bytes

Contents

class PostsComponent
  include Rafters::Component

  attribute :posts

  private

  def posts
    @posts ||= controller(:posts)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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