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 070f0b5 commit dc81f2eCopy full SHA for dc81f2e
app/models/gtt_map_layer.rb
@@ -1,7 +1,7 @@
1
# Map layer model
2
#
3
# Configuration is stored as json
4
-class GttMapLayer < ActiveRecord::Base
+class GttMapLayer < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
5
self.inheritance_column = 'none'
6
7
validates :name, presence: true
0 commit comments