Module: Card::Set::All::Permissions::ClassMethods

Defined in:
platypus/tmp/set/gem-defaults/mod007-permissions/all/permissions.rb

Instance Method Summary collapse

Instance Method Details

#repair_all_permissionsObject



223
224
225
226
227
228
229
# File 'platypus/tmp/set/gem-defaults/mod007-permissions/all/permissions.rb', line 223

def repair_all_permissions
  Card.where("(read_rule_class is null or read_rule_id is null) and trash is false")
      .each do |broken_card|
    broken_card.include_set_modules
    broken_card.repair_permissions!
  end
end