Sha256: 6f2e72b5701b4d5ad1f79b7e8117e60bdc5518e0e48fbe272c89c5f9cf832da4

Contents?: true

Size: 219 Bytes

Versions: 7

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

module Scribo
  class ApplicationRecord < ActiveRecord::Base
    self.abstract_class = true

    def to_liquid
      Kernel.const_get("#{self.class.name}Drop").new(self)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scribo-1.0.44 app/models/scribo/application_record.rb
scribo-1.0.43 app/models/scribo/application_record.rb
scribo-1.0.42 app/models/scribo/application_record.rb
scribo-1.0.41 app/models/scribo/application_record.rb
scribo-1.0.40 app/models/scribo/application_record.rb
scribo-1.0.39 app/models/scribo/application_record.rb
scribo-1.0.38 app/models/scribo/application_record.rb