Sha256: 0b5f4f4740c8157c40e0ef13a435200476a74c1280d2fd3b2dac5ca468f833ab

Contents?: true

Size: 340 Bytes

Versions: 10

Compression:

Stored size: 340 Bytes

Contents

module WulffeldSlug
  module Slug
    def has_slug(fields, options = {})
      class_attribute :slug_config
      self.slug_config = {:case => :downcase, :loop_start => 64, :fields => fields}.merge(options)

      include WulffeldSlug::SlugInclude
    end
  end
end

module ActiveRecord
  class Base
    extend WulffeldSlug::Slug
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wulffeld_slug-0.0.24 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.23 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.22 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.21 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.20 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.19 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.18 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.17 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.16 lib/wulffeld_slug/slug.rb
wulffeld_slug-0.0.15 lib/wulffeld_slug/slug.rb