Sha256: 1ff98a435c938c517b93ca5eac9dceea627a929ed653cf97b8546db73af9add5
Contents?: true
Size: 437 Bytes
Versions: 70
Compression:
Stored size: 437 Bytes
Contents
# Adds the ability to set the visibility of an item in the execution context. module Avo module Concerns module HasCoverPhoto extend ActiveSupport::Concern class_methods do # Add class property to capture the settings attr_accessor :cover_photo end # Add instance property to compute the options def cover_photo Avo::CoverPhoto.new resource: self end end end end
Version data entries
70 entries across 70 versions & 1 rubygems