Sha256: 4f2d47eccf904d330efcb1c2ee644e8f275508ac02c3216457fc652945849779

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

require 'simple_slug/version'
require 'active_support/core_ext'
require 'simple_slug/model_addition'
require 'simple_slug/railtie' if Object.const_defined?(:Rails)

module SimpleSlug
  autoload :HistorySlug, 'simple_slug/history_slug'

  mattr_accessor :excludes
  @@excludes = %w(new edit show index session login logout sign_in sign_out users admin stylesheets assets javascripts images)

  mattr_accessor :exclude_regexp
  @@exclude_regexp = /\A\d+\z/

  mattr_accessor :slug_column
  @@slug_column = 'slug'

  def self.setup
    yield self
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_slug-0.2.0 lib/simple_slug.rb
simple_slug-0.1.0 lib/simple_slug.rb
simple_slug-0.0.1 lib/simple_slug.rb