Class: Effective::ActiveStorageExtension

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/active_storage_extension.rb

Constant Summary collapse

PERMISSIONS =
['inherited', 'public']

Instance Method Summary collapse

Instance Method Details

#permission_inherited?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/effective/active_storage_extension.rb', line 22

def permission_inherited?
  permission == 'inherited'
end

#permission_public?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/effective/active_storage_extension.rb', line 26

def permission_public?
  permission == 'public'
end

#to_sObject



18
19
20
# File 'app/models/effective/active_storage_extension.rb', line 18

def to_s
  permission.presence || 'active storage extension'
end