diff --git a/app/models/activity.rb b/app/models/activity.rb index c98f0888..20a763bf 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Activity < ActiveRecord::Base +class Activity < ApplicationRecord end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 00000000..52fec221 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,5 @@ +# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later + +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end \ No newline at end of file diff --git a/app/models/bank_account.rb b/app/models/bank_account.rb index 92265f4f..c618467a 100644 --- a/app/models/bank_account.rb +++ b/app/models/bank_account.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class BankAccount < ActiveRecord::Base +class BankAccount < ApplicationRecord attr_accessible \ :name, # str (readable bank name identifier, eg. "Wells Fargo *1234") diff --git a/app/models/billing_plan.rb b/app/models/billing_plan.rb index 552a273d..217bb747 100644 --- a/app/models/billing_plan.rb +++ b/app/models/billing_plan.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class BillingPlan < ActiveRecord::Base +class BillingPlan < ApplicationRecord Names = ['Starter', 'Fundraising', 'Supporter Management'] DefaultAmounts = [0, 9900, 29900] # in pennies diff --git a/app/models/billing_subscription.rb b/app/models/billing_subscription.rb index 5e67bfea..9d33ee48 100644 --- a/app/models/billing_subscription.rb +++ b/app/models/billing_subscription.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class BillingSubscription < ActiveRecord::Base +class BillingSubscription < ApplicationRecord attr_accessible \ :nonprofit_id, :nonprofit, diff --git a/app/models/campaign.rb b/app/models/campaign.rb index d4037873..c104e0af 100644 --- a/app/models/campaign.rb +++ b/app/models/campaign.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Campaign < ActiveRecord::Base +class Campaign < ApplicationRecord attr_accessible \ :name, diff --git a/app/models/campaign_gift.rb b/app/models/campaign_gift.rb index be8e76ba..273cf9f2 100644 --- a/app/models/campaign_gift.rb +++ b/app/models/campaign_gift.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class CampaignGift < ActiveRecord::Base +class CampaignGift < ApplicationRecord attr_accessible \ :donation_id, diff --git a/app/models/campaign_gift_option.rb b/app/models/campaign_gift_option.rb index f69129c4..7c07e901 100644 --- a/app/models/campaign_gift_option.rb +++ b/app/models/campaign_gift_option.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class CampaignGiftOption < ActiveRecord::Base +class CampaignGiftOption < ApplicationRecord attr_accessible \ :amount_one_time, #int (cents) diff --git a/app/models/card.rb b/app/models/card.rb index d7b806f8..b63a09fe 100755 --- a/app/models/card.rb +++ b/app/models/card.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Card < ActiveRecord::Base +class Card < ApplicationRecord attr_accessible \ :cardholders_name, # str (name associated with this card) diff --git a/app/models/charge.rb b/app/models/charge.rb index d2ce3f47..7b300efa 100644 --- a/app/models/charge.rb +++ b/app/models/charge.rb @@ -1,7 +1,7 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # A Charge represents a potential debit to a nonprofit's account on a credit card donation action. -class Charge < ActiveRecord::Base +class Charge < ApplicationRecord attr_accessible \ :amount, diff --git a/app/models/comment.rb b/app/models/comment.rb index e0491d49..6f4b9e52 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Comment < ActiveRecord::Base +class Comment < ApplicationRecord attr_accessible \ :host_id, :host_type, #parent: Event, Campaign, nil diff --git a/app/models/coupon.rb b/app/models/coupon.rb index 1377d548..08d93729 100644 --- a/app/models/coupon.rb +++ b/app/models/coupon.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Coupon < ActiveRecord::Base +class Coupon < ApplicationRecord attr_accessible \ :name, :victim_np_id, diff --git a/app/models/custom_field_join.rb b/app/models/custom_field_join.rb index c38e9331..0d96a378 100644 --- a/app/models/custom_field_join.rb +++ b/app/models/custom_field_join.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class CustomFieldJoin < ActiveRecord::Base +class CustomFieldJoin < ApplicationRecord attr_accessible \ :supporter, :supporter_id, diff --git a/app/models/custom_field_master.rb b/app/models/custom_field_master.rb index ef6bb85c..56f4398a 100644 --- a/app/models/custom_field_master.rb +++ b/app/models/custom_field_master.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class CustomFieldMaster < ActiveRecord::Base +class CustomFieldMaster < ApplicationRecord attr_accessible \ :nonprofit, :nonprofit_id, diff --git a/app/models/direct_debit_detail.rb b/app/models/direct_debit_detail.rb index ba8fbe67..d4dbfdcb 100644 --- a/app/models/direct_debit_detail.rb +++ b/app/models/direct_debit_detail.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class DirectDebitDetail < ActiveRecord::Base +class DirectDebitDetail < ApplicationRecord attr_accessible :iban, :account_holder_name, :bic, :supporter_id, :holder has_many :donations diff --git a/app/models/dispute.rb b/app/models/dispute.rb index 722768b3..e8b912e4 100644 --- a/app/models/dispute.rb +++ b/app/models/dispute.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Dispute < ActiveRecord::Base +class Dispute < ApplicationRecord Reasons = [: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] diff --git a/app/models/donation.rb b/app/models/donation.rb index 43f995c9..1c7053d8 100644 --- a/app/models/donation.rb +++ b/app/models/donation.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Donation < ActiveRecord::Base +class Donation < ApplicationRecord attr_accessible \ :date, # datetime (when this donation was made) diff --git a/app/models/email_draft.rb b/app/models/email_draft.rb index 9614c13c..cc4951b0 100644 --- a/app/models/email_draft.rb +++ b/app/models/email_draft.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class EmailDraft < ActiveRecord::Base +class EmailDraft < ApplicationRecord attr_accessible \ :nonprofit, :nonprofit_id, diff --git a/app/models/email_list.rb b/app/models/email_list.rb index ea64e773..4f8fccf1 100644 --- a/app/models/email_list.rb +++ b/app/models/email_list.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class EmailList < ActiveRecord::Base +class EmailList < ApplicationRecord attr_accessible :list_name, :mailchimp_list_id, :nonprofit, :tag_master belongs_to :nonprofit belongs_to :tag_master diff --git a/app/models/email_setting.rb b/app/models/email_setting.rb index c4f8bf2e..0171f071 100644 --- a/app/models/email_setting.rb +++ b/app/models/email_setting.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class EmailSetting < ActiveRecord::Base +class EmailSetting < ApplicationRecord attr_accessible \ :user_id, :user, diff --git a/app/models/event.rb b/app/models/event.rb index 4face493..37c631f7 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Event < ActiveRecord::Base +class Event < ApplicationRecord attr_accessible \ :deleted, #bool for soft-delete diff --git a/app/models/event_discount.rb b/app/models/event_discount.rb index 7e6a69a0..2888ecaa 100644 --- a/app/models/event_discount.rb +++ b/app/models/event_discount.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class EventDiscount < ActiveRecord::Base +class EventDiscount < ApplicationRecord attr_accessible \ :code, :event_id, diff --git a/app/models/export.rb b/app/models/export.rb index e49d5609..ee4717a4 100644 --- a/app/models/export.rb +++ b/app/models/export.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Export < ActiveRecord::Base +class Export < ApplicationRecord STATUS = %w[queued started completed failed].freeze attr_accessible :exception, :nonprofit, :status, :user, :export_type, :parameters, :ended, :url, :user_id, :nonprofit_id diff --git a/app/models/full_contact_info.rb b/app/models/full_contact_info.rb index 712579fa..7862d89d 100644 --- a/app/models/full_contact_info.rb +++ b/app/models/full_contact_info.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class FullContactInfo < ActiveRecord::Base +class FullContactInfo < ApplicationRecord attr_accessible \ :email, :full_name, diff --git a/app/models/full_contact_org.rb b/app/models/full_contact_org.rb index a8b4ce1b..05acfc9c 100644 --- a/app/models/full_contact_org.rb +++ b/app/models/full_contact_org.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class FullContactOrg < ActiveRecord::Base +class FullContactOrg < ApplicationRecord attr_accessible \ :name, diff --git a/app/models/full_contact_photo.rb b/app/models/full_contact_photo.rb index 258a764f..b96a5bb7 100644 --- a/app/models/full_contact_photo.rb +++ b/app/models/full_contact_photo.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class FullContactPhoto < ActiveRecord::Base +class FullContactPhoto < ApplicationRecord attr_accessible \ :full_contact_info, :full_contact_info_id, diff --git a/app/models/full_contact_social_profile.rb b/app/models/full_contact_social_profile.rb index 047160ea..b98a4dd3 100644 --- a/app/models/full_contact_social_profile.rb +++ b/app/models/full_contact_social_profile.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class FullContactSocialProfile < ActiveRecord::Base +class FullContactSocialProfile < ApplicationRecord attr_accessible \ :full_contact_info, :full_contact_info_id, diff --git a/app/models/full_contact_topic.rb b/app/models/full_contact_topic.rb index 475f9c27..0839097b 100644 --- a/app/models/full_contact_topic.rb +++ b/app/models/full_contact_topic.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class FullContactTopic < ActiveRecord::Base +class FullContactTopic < ApplicationRecord attr_accessible \ :provider, diff --git a/app/models/image_attachment.rb b/app/models/image_attachment.rb index d6afb9a4..642ba68c 100644 --- a/app/models/image_attachment.rb +++ b/app/models/image_attachment.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class ImageAttachment < ActiveRecord::Base +class ImageAttachment < ApplicationRecord attr_accessible :parent_id, :file mount_uploader :file, ImageAttachmentUploader diff --git a/app/models/import.rb b/app/models/import.rb index b4e3f681..66a06071 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Import < ActiveRecord::Base +class Import < ApplicationRecord attr_accessible \ :user_id, :user, diff --git a/app/models/miscellaneous_np_info.rb b/app/models/miscellaneous_np_info.rb index 2b15029a..a9ba9179 100644 --- a/app/models/miscellaneous_np_info.rb +++ b/app/models/miscellaneous_np_info.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class MiscellaneousNpInfo < ActiveRecord::Base +class MiscellaneousNpInfo < ApplicationRecord attr_accessible \ :donate_again_url, diff --git a/app/models/nonprofit.rb b/app/models/nonprofit.rb index f7280036..b2bda8d4 100755 --- a/app/models/nonprofit.rb +++ b/app/models/nonprofit.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Nonprofit < ActiveRecord::Base +class Nonprofit < ApplicationRecord Categories = ["Public Benefit", "Human Services", "Education", "Civic Duty", "Human Rights", "Animals", "Environment", "Health", "Arts, Culture, Humanities", "International", "Children", "Religion", "LGBTQ", "Women's Rights", "Disaster Relief", "Veterans"] diff --git a/app/models/nonprofit_account.rb b/app/models/nonprofit_account.rb index a3bff211..b5ee62d0 100644 --- a/app/models/nonprofit_account.rb +++ b/app/models/nonprofit_account.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class NonprofitAccount < ActiveRecord::Base +class NonprofitAccount < ApplicationRecord attr_accessible \ :stripe_account_id, #str diff --git a/app/models/offsite_payment.rb b/app/models/offsite_payment.rb index 4e4cf03a..9a729ed2 100644 --- a/app/models/offsite_payment.rb +++ b/app/models/offsite_payment.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class OffsitePayment < ActiveRecord::Base +class OffsitePayment < ApplicationRecord attr_accessible :gross_amount, :kind, :date, :check_number belongs_to :payment, dependent: :destroy diff --git a/app/models/payment.rb b/app/models/payment.rb index e916a588..4e622d7b 100644 --- a/app/models/payment.rb +++ b/app/models/payment.rb @@ -3,7 +3,7 @@ # If connected to a charge, this represents money potentially debited to the nonprofit's account # If connected to an offsite_payment, this is money the nonprofit is recording for convenience. -class Payment < ActiveRecord::Base +class Payment < ApplicationRecord attr_accessible \ :towards, diff --git a/app/models/payment_import.rb b/app/models/payment_import.rb index ebe96e11..fea614a5 100644 --- a/app/models/payment_import.rb +++ b/app/models/payment_import.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class PaymentImport < ActiveRecord::Base +class PaymentImport < ApplicationRecord attr_accessible :nonprofit, :user has_and_belongs_to_many :donations belongs_to :nonprofit diff --git a/app/models/payment_payout.rb b/app/models/payment_payout.rb index a7a840d1..3c686763 100644 --- a/app/models/payment_payout.rb +++ b/app/models/payment_payout.rb @@ -11,7 +11,7 @@ # It's also nice to keep a historical records of fees for individual donations # since our fees will continue to change as our transaction volume increases -class PaymentPayout < ActiveRecord::Base +class PaymentPayout < ApplicationRecord attr_accessible \ :payment_id, :payment, diff --git a/app/models/payout.rb b/app/models/payout.rb index aa53c033..58fd8542 100644 --- a/app/models/payout.rb +++ b/app/models/payout.rb @@ -4,7 +4,7 @@ # # These are tied to Stripe transfers -class Payout < ActiveRecord::Base +class Payout < ApplicationRecord attr_accessible \ :scheduled, # bool (whether this was made automatically at the beginning of the month) diff --git a/app/models/profile.rb b/app/models/profile.rb index 5ff2f392..d9e17c0d 100755 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Profile < ActiveRecord::Base +class Profile < ApplicationRecord attr_accessible \ :registered, # bool diff --git a/app/models/recurring_donation.rb b/app/models/recurring_donation.rb index 1a088b1e..3e018bbe 100644 --- a/app/models/recurring_donation.rb +++ b/app/models/recurring_donation.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class RecurringDonation < ActiveRecord::Base +class RecurringDonation < ApplicationRecord attr_accessible \ :amount, # int (cents) diff --git a/app/models/refund.rb b/app/models/refund.rb index f7fff991..25e7cf8b 100644 --- a/app/models/refund.rb +++ b/app/models/refund.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Refund < ActiveRecord::Base +class Refund < ApplicationRecord Reasons = [:duplicate, :fraudulent, :requested_by_customer] diff --git a/app/models/role.rb b/app/models/role.rb index 2c8401bf..8bbd5263 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Role < ActiveRecord::Base +class Role < ApplicationRecord Names = [ :super_admin, # global access diff --git a/app/models/source_token.rb b/app/models/source_token.rb index 2d785ce1..1d6ca55f 100644 --- a/app/models/source_token.rb +++ b/app/models/source_token.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class SourceToken < ActiveRecord::Base +class SourceToken < ApplicationRecord self.primary_key = :token attr_accessible :expiration, :token, :max_uses, :total_uses belongs_to :tokenizable, :polymorphic => true diff --git a/app/models/supporter.rb b/app/models/supporter.rb index 8d5a89de..05674b16 100644 --- a/app/models/supporter.rb +++ b/app/models/supporter.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Supporter < ActiveRecord::Base +class Supporter < ApplicationRecord attr_accessible \ :search_vectors, diff --git a/app/models/supporter_email.rb b/app/models/supporter_email.rb index 5ac0d8d9..0e9b2e53 100644 --- a/app/models/supporter_email.rb +++ b/app/models/supporter_email.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class SupporterEmail < ActiveRecord::Base +class SupporterEmail < ApplicationRecord attr_accessible \ :to, :from, diff --git a/app/models/supporter_note.rb b/app/models/supporter_note.rb index dd920f07..ff7d29f9 100644 --- a/app/models/supporter_note.rb +++ b/app/models/supporter_note.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class SupporterNote < ActiveRecord::Base +class SupporterNote < ApplicationRecord attr_accessible \ :content, diff --git a/app/models/tag_join.rb b/app/models/tag_join.rb index 5f0e402a..d531ddb9 100644 --- a/app/models/tag_join.rb +++ b/app/models/tag_join.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class TagJoin < ActiveRecord::Base +class TagJoin < ApplicationRecord attr_accessible \ :supporter, :supporter_id, diff --git a/app/models/tag_master.rb b/app/models/tag_master.rb index 6e9f0ffd..836bdbfb 100644 --- a/app/models/tag_master.rb +++ b/app/models/tag_master.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class TagMaster < ActiveRecord::Base +class TagMaster < ApplicationRecord attr_accessible \ :nonprofit, :nonprofit_id, diff --git a/app/models/ticket.rb b/app/models/ticket.rb index e805ad89..9e56fd2b 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Ticket < ActiveRecord::Base +class Ticket < ApplicationRecord attr_accessible :note, :event_discount, :event_discount_id diff --git a/app/models/ticket_level.rb b/app/models/ticket_level.rb index 9d628782..130157e0 100644 --- a/app/models/ticket_level.rb +++ b/app/models/ticket_level.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class TicketLevel < ActiveRecord::Base +class TicketLevel < ApplicationRecord attr_accessible \ :amount, #integer diff --git a/app/models/tracking.rb b/app/models/tracking.rb index d3a175c7..a730989f 100644 --- a/app/models/tracking.rb +++ b/app/models/tracking.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class Tracking < ActiveRecord::Base +class Tracking < ApplicationRecord attr_accessible :utm_campaign, :utm_content, :utm_medium, :utm_source belongs_to :donation diff --git a/app/models/user.rb b/app/models/user.rb index 32f1e674..dffee4cb 100755 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,5 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -class User < ActiveRecord::Base +class User < ApplicationRecord attr_accessible \ :email, # str: balidated with Devise