Sha256: 6ee612b21281f648ec5a0c72e616caf19f60ae08b43ef5f5cb01f8d13cfbc6aa
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 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' mattr_accessor :max_length @@max_length = 240 STARTS_WITH_NUMBER_REGEXP =/\A\d+/ def self.setup yield self end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_slug-0.3.0 | lib/simple_slug.rb |