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