We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67299d3 commit 9f7335bCopy full SHA for 9f7335b
app/models/subscription_template.rb
@@ -1,4 +1,4 @@
1
-class SubscriptionTemplate < ActiveRecord::Base
+class SubscriptionTemplate < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
2
self.table_name = "fiware_subscription_templates"
3
4
after_initialize :set_default_alteration_types, if: :new_record?
0 commit comments