Sha256: a864b03790601e1b11b66f5f94cff2aa5d4fecca0dc6eb0a399d14c0c2aec10a
Contents?: true
Size: 258 Bytes
Versions: 2
Compression:
Stored size: 258 Bytes
Contents
class PostComponent include Rafters::Component # Settings setting :post setting :link_to_post, accepts: [true, false], default: false # Attributes attribute :post private def post @post ||= (settings.post || current(:post)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rafters-0.0.4 | spec/dummy/app/components/post/post_component.rb |
rafters-0.0.3 | spec/dummy/app/components/post/post_component.rb |