Sha256: af7207dc03b514c97331763f6a6174f6a414fe63dd0dd99be60e3d2669b1d3de

Contents?: true

Size: 212 Bytes

Versions: 7

Compression:

Stored size: 212 Bytes

Contents

# frozen_string_literal: true

module ActiveRecordHelpers
  extend ActiveSupport::Concern

  class_methods do
    def scribable
      has_many :sites, as: :scribable, class_name: 'Scribo::Site'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scribo-1.0.44 lib/scribo/active_record_helpers.rb
scribo-1.0.43 lib/scribo/active_record_helpers.rb
scribo-1.0.42 lib/scribo/active_record_helpers.rb
scribo-1.0.41 lib/scribo/active_record_helpers.rb
scribo-1.0.40 lib/scribo/active_record_helpers.rb
scribo-1.0.39 lib/scribo/active_record_helpers.rb
scribo-1.0.38 lib/scribo/active_record_helpers.rb