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

Version Path
avo-3.17.3 lib/avo/concerns/has_profile_photo.rb
avo-3.17.5.tw4 lib/avo/concerns/has_profile_photo.rb
avo-3.17.4.tw4 lib/avo/concerns/has_profile_photo.rb
avo-3.17.3.tw4 lib/avo/concerns/has_profile_photo.rb
avo-3.17.2.tw4 lib/avo/concerns/has_profile_photo.rb
avo-3.17.2 lib/avo/concerns/has_profile_photo.rb
avo-3.17.1.tw4 lib/avo/concerns/has_profile_photo.rb
avo-3.17.1 lib/avo/concerns/has_profile_photo.rb
avo-3.17.0 lib/avo/concerns/has_profile_photo.rb
avo-3.16.6 lib/avo/concerns/has_profile_photo.rb
avo-3.16.5 lib/avo/concerns/has_profile_photo.rb
avo-3.16.4 lib/avo/concerns/has_profile_photo.rb
avo-3.16.3 lib/avo/concerns/has_profile_photo.rb
avo-3.16.2 lib/avo/concerns/has_profile_photo.rb
avo-3.16.1 lib/avo/concerns/has_profile_photo.rb
avo-3.16.0 lib/avo/concerns/has_profile_photo.rb
avo-3.15.7 lib/avo/concerns/has_profile_photo.rb
avo-3.15.6 lib/avo/concerns/has_profile_photo.rb
avo-3.15.5 lib/avo/concerns/has_profile_photo.rb
avo-3.15.4 lib/avo/concerns/has_profile_photo.rb