Sha256: 9e71026abd0375e4211cc4173721dfeb0a841e0491f68fca3dae9cae7cdbdb22
Contents?: true
Size: 387 Bytes
Versions: 100
Compression:
Stored size: 387 Bytes
Contents
# Temporary fix to FriendlyId in Rails5, so that we don't # encounter any validation errors when creating slugs via # FriendlyId::History on a paranoid model. # See: https://github.com/norman/friendly_id/issues/822 if Rails::VERSION::STRING >= '5.0' module FriendlyId class Slug < ActiveRecord::Base belongs_to :sluggable, polymorphic: true, optional: true end end end
Version data entries
100 entries across 100 versions & 2 rubygems