style(models): remove attr_accessible comment

Keep comments on model specifics.
This commit is contained in:
Luis Castro 2019-08-06 14:49:40 +02:00 committed by Eric Schultz
parent 65bd361b3f
commit a5aff586d6
3 changed files with 10 additions and 13 deletions

View file

@ -4,8 +4,6 @@
# A Charge represents a potential debit to a nonprofit's account on a credit card donation action. # A Charge represents a potential debit to a nonprofit's account on a credit card donation action.
class Charge < ApplicationRecord class Charge < ApplicationRecord
# TODO
# attr_accessible \
# :amount, # :amount,
# :fee, # :fee,
# :stripe_charge_id, # :stripe_charge_id,

View file

@ -2,9 +2,8 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class Comment < ApplicationRecord class Comment < ApplicationRecord
# TODO # :host_id,
# attr_accessible \ # :host_type, # parent: Event, Campaign, nil
# :host_id, :host_type, #parent: Event, Campaign, nil
# :profile_id, # :profile_id,
# :body # :body

View file

@ -2,11 +2,11 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class Coupon < ApplicationRecord class Coupon < ApplicationRecord
# attr_accessible \
# :name, # :name,
# :victim_np_id, # :victim_np_id,
# :paid, # boolean # :paid, # boolean
# :nonprofit, :nonprofit_id # :nonprofit,
# :nonprofit_id
scope :unpaid, -> { where(paid: [nil, false]) } scope :unpaid, -> { where(paid: [nil, false]) }