Skip to content

Commit

Permalink
Namespace Configuration module
Browse files Browse the repository at this point in the history
The Configuration module name was without namespace and prone to
clashing with Configuration modules or classes on projects.
  • Loading branch information
tgk committed Nov 24, 2015
1 parent c2a8eea commit e267d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/route_downcaser.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'route_downcaser/downcase_route_middleware'
require 'route_downcaser/railtie' if defined? Rails
require 'configuration'
require 'route_downcaser/configuration'

module RouteDowncaser
extend Configuration
extend RouteDowncaser::Configuration

define_setting :redirect, false
define_setting :exclude_patterns, [/assets\//i]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Configuration
module RouteDowncaser::Configuration

def configuration
yield self
Expand Down

0 comments on commit e267d19

Please sign in to comment.