app/models/calagator/source/importer.rb in calagator-1.1.0 vs app/models/calagator/source/importer.rb in calagator-2.0.0.pre.0
- old
+ new
@@ -1,6 +1,8 @@
+# frozen_string_literal: true
+
module Calagator
- class Source < ActiveRecord::Base
+ class Source < ApplicationRecord
class Importer < Struct.new(:source, :events)
def initialize(params)
self.source = Source.find_or_create_by(params)
end