style(models): normalize comments style
This commit is contained in:
parent
fa77979712
commit
c64adad9ad
25 changed files with 171 additions and 184 deletions
|
@ -2,7 +2,11 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class DirectDebitDetail < ApplicationRecord
|
||||
# attr_accessible :iban, :account_holder_name, :bic, :supporter_id, :holder
|
||||
# :iban,
|
||||
# :account_holder_name,
|
||||
# :bic,
|
||||
# :supporter_id,
|
||||
# :holder
|
||||
|
||||
has_many :donations
|
||||
has_many :charges
|
||||
|
|
|
@ -5,11 +5,11 @@ class Dispute < ApplicationRecord
|
|||
Reasons = %i[unrecognized duplicate fraudulent subscription_canceled product_unacceptable product_not_received unrecognized credit_not_processed goods_services_returned_or_refused goods_services_cancelled incorrect_account_details insufficient_funds bank_cannot_process debit_not_authorized general].freeze
|
||||
|
||||
Statuses = %i[needs_response under_review won lost lost_and_paid].freeze
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :gross_amount, # int
|
||||
# :charge_id, :charge,
|
||||
# :payment_id, :payment,
|
||||
# :charge_id,
|
||||
# :charge,
|
||||
# :payment_id,
|
||||
# :payment,
|
||||
# :status,
|
||||
# :reason
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class EmailDraft < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :nonprofit, :nonprofit_id,
|
||||
# :name,
|
||||
# :deleted,
|
||||
|
|
|
@ -2,8 +2,18 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class Export < ApplicationRecord
|
||||
# :exception,
|
||||
# :nonprofit,
|
||||
# :status,
|
||||
# :user,
|
||||
# :export_type,
|
||||
# :parameters,
|
||||
# :ended,
|
||||
# :url,
|
||||
# :user_id,
|
||||
# :nonprofit_id
|
||||
|
||||
STATUS = %w[queued started completed failed].freeze
|
||||
# attr_accessible :exception, :nonprofit, :status, :user, :export_type, :parameters, :ended, :url, :user_id, :nonprofit_id
|
||||
|
||||
belongs_to :nonprofit
|
||||
belongs_to :user
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class FullContactInfo < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :email,
|
||||
# :full_name,
|
||||
# :gender,
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class FullContactOrg < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :name,
|
||||
# :is_primary,
|
||||
# :name,
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class FullContactPhoto < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :full_contact_info,
|
||||
# :full_contact_info_id,
|
||||
# :type_id, # i.e. twitter, linkedin, facebook
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class FullContactSocialProfile < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :full_contact_info,
|
||||
# :full_contact_info_id,
|
||||
# :type_id, # i.e. twitter, linkedin, facebook
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class FullContactTopic < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :provider,
|
||||
# :value,
|
||||
# :full_contact_info_id, :full_contact_info
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class ImageAttachment < ApplicationRecord
|
||||
attr_accessible :parent_id, :file
|
||||
# :parent_id,
|
||||
# :file
|
||||
mount_uploader :file, ImageAttachmentUploader
|
||||
|
||||
# not sure if poly parent is used on this model, as all values are nil in db
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class MiscellaneousNpInfo < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :donate_again_url,
|
||||
# :change_amount_message
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class NonprofitAccount < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :stripe_account_id, #str
|
||||
# :nonprofit, :nonprofit_id #int
|
||||
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class OffsitePayment < ApplicationRecord
|
||||
# attr_accessible :gross_amount, :kind, :date, :check_number
|
||||
# :gross_amount,
|
||||
# :kind,
|
||||
# :date,
|
||||
# :check_number
|
||||
belongs_to :payment, dependent: :destroy
|
||||
belongs_to :donation
|
||||
belongs_to :nonprofit
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
# If connected to an offsite_payment, this is money the nonprofit is recording for convenience.
|
||||
|
||||
class Payment < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :towards,
|
||||
# :gross_amount,
|
||||
# :refund_total,
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
# since our fees will continue to change as our transaction volume increases
|
||||
|
||||
class PaymentPayout < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :payment_id, :payment,
|
||||
# :charge_id, :charge, # deprecated
|
||||
# :payout_id, :payout,
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
# These are tied to Stripe transfers
|
||||
|
||||
class Payout < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :scheduled, # bool (whether this was made automatically at the beginning of the month)
|
||||
# :count, # int (number of donations for this payout)
|
||||
# :ach_fee, # int (in cents, the total fee for the payout itself)
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class Refund < ApplicationRecord
|
||||
Reasons = %i[duplicate fraudulent requested_by_customer].freeze
|
||||
|
||||
# TODO:
|
||||
# attr_accessible \
|
||||
# :amount, # int
|
||||
# :comment, # text
|
||||
# :reason, # str ('duplicate', 'fraudulent', or 'requested_by_customer')
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class SourceToken < ApplicationRecord
|
||||
self.primary_key = :token
|
||||
# attr_accessible :expiration, :token, :max_uses, :total_uses
|
||||
# :expiration,
|
||||
# :token,
|
||||
# :max_uses,
|
||||
# :total_uses
|
||||
belongs_to :tokenizable, polymorphic: true
|
||||
belongs_to :event
|
||||
end
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class Supporter < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :search_vectors,
|
||||
# :profile_id, :profile,
|
||||
# :nonprofit_id, :nonprofit,
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class SupporterEmail < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :to,
|
||||
# :from,
|
||||
# :subject,
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class SupporterNote < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :content,
|
||||
# :supporter_id, :supporter
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class TagJoin < ApplicationRecord
|
||||
# TODO
|
||||
# attr_accessible \
|
||||
# :supporter, :supporter_id,
|
||||
# :tag_master, :tag_master_id
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class TagMaster < ApplicationRecord
|
||||
# TODO:
|
||||
# attr_accessible \
|
||||
# :nonprofit, :nonprofit_id,
|
||||
# :name,
|
||||
# :deleted,
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class Tracking < ApplicationRecord
|
||||
# attr_accessible :utm_campaign, :utm_content, :utm_medium, :utm_source
|
||||
# :utm_campaign,
|
||||
# :utm_content,
|
||||
# :utm_medium,
|
||||
# :utm_source
|
||||
|
||||
belongs_to :donation
|
||||
end
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
class User < ApplicationRecord
|
||||
# TODO:
|
||||
# attr_accessible \
|
||||
# :email, # str: balidated with Devise
|
||||
# :password, # str: hashed with bcrypt
|
||||
# :phone, # str
|
||||
|
|
Loading…
Reference in a new issue