Skip to content

Commit dc81f2e

Browse files
committed
Refactor GttMapLayer to use ApplicationRecord if available
1 parent 070f0b5 commit dc81f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/gtt_map_layer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Map layer model
22
#
33
# Configuration is stored as json
4-
class GttMapLayer < ActiveRecord::Base
4+
class GttMapLayer < (defined?(ApplicationRecord) == 'constant' ? ApplicationRecord : ActiveRecord::Base)
55
self.inheritance_column = 'none'
66

77
validates :name, presence: true

0 commit comments

Comments
 (0)