Sha256: bce672abcf01a166f46d85badd17b248a195b08b76c296166ff19612d8d9949c

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

delegate :accounted, to: :account_card

def account_card
  left
end

# allow account owner to update account field content
def ok_to_update
  (own_account? && !name_changed? && !type_id_changed?) || super
end

# force inherit permission on create
# (cannot be done with rule, because sets are not addressable)
def permission_rule_id action
  if action == :create
    left_permission_rule_id action
  else
    super
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-mod-account-0.16.0 set/abstract/account_field.rb
card-mod-account-0.15.6 set/abstract/account_field.rb
card-mod-account-0.15.5 set/abstract/account_field.rb
card-mod-account-0.15.4 set/abstract/account_field.rb
card-mod-account-0.15.3 set/abstract/account_field.rb
card-mod-account-0.15.2.pre1 set/abstract/account_field.rb
card-mod-account-0.15.1.1 set/abstract/account_field.rb
card-mod-account-0.15.1 set/abstract/account_field.rb
card-mod-account-0.15.0 set/abstract/account_field.rb