app/models/spree/gtm.rb in spree_gtm-0.0.3 vs app/models/spree/gtm.rb in spree_gtm-0.0.4

- old
+ new

@@ -1,9 +1,12 @@ class Spree::Gtm < ActiveRecord::Base validates :gtm_accountid, presence: true + def self.activated? + first.present? + end def self.gtm_accountid - first.gtm_accountid - end + first.gtm_accountid + end end