Sha256: 4a7bb191e1c63005440fcb8ec71c9118ec8cd7301e0e78d8645ad17b07b3e149

Contents?: true

Size: 162 Bytes

Versions: 6

Compression:

Stored size: 162 Bytes

Contents

# frozen_string_literal: true

class ModelSlug < ActiveRecord::Base
  normalizy :permalink, with: :slug
  normalizy :title    , with: { slug: { to: :slug } }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/support/models/model_slug.rb
normalizy-1.4.0 spec/support/models/model_slug.rb
normalizy-1.3.0 spec/support/models/model_slug.rb
normalizy-1.2.0 spec/support/models/model_slug.rb
normalizy-1.1.1 spec/support/models/model_slug.rb
normalizy-1.1.0 spec/support/models/model_slug.rb