Module: UrlSlug

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Inflector
Defined in:
lib/url_slug.rb,
lib/url_slug/version.rb,
lib/url_slug/configuration.rb,
lib/generators/url_slug/actions.rb,
lib/generators/url_slug/install_generator.rb,
lib/generators/url_slug/rails/rails_generator.rb

Defined Under Namespace

Modules: Generators Classes: Configuration

Constant Summary collapse

VERSION =
'0.1.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/url_slug/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/url_slug/configuration.rb', line 8

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end