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,12 +4,10 @@
# A Charge represents a potential debit to a nonprofit's account on a credit card donation action.
class Charge < ApplicationRecord
# TODO
# attr_accessible \
# :amount,
# :fee,
# :stripe_charge_id,
# :status
# :amount,
# :fee,
# :stripe_charge_id,
# :status
has_one :campaign, through: :donation
has_one :recurring_donation, through: :donation

View file

@ -2,11 +2,10 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class Comment < ApplicationRecord
# TODO
# attr_accessible \
# :host_id, :host_type, #parent: Event, Campaign, nil
# :profile_id,
# :body
# :host_id,
# :host_type, # parent: Event, Campaign, nil
# :profile_id,
# :body
validates :profile, presence: true
validates :body, presence: true, length: { maximum: 200 }

View file

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