rails_default_url_options 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,7 @@ unless defined?(DefaultUrlOptions)
|
|
|
31
31
|
DefaultUrlOptions = defined?(HashWithIndifferentAccess) ? HashWithIndifferentAccess.new : Hash.new
|
|
32
32
|
|
|
33
33
|
def DefaultUrlOptions.version
|
|
34
|
-
'1.3.
|
|
34
|
+
'1.3.1'
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def DefaultUrlOptions.configure(request = {})
|
|
@@ -130,16 +130,14 @@ end
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
if defined?(Rails)
|
|
133
|
-
## sane defaults
|
|
134
|
-
#
|
|
135
|
-
DefaultUrlOptions.configure(
|
|
136
|
-
:host => '0.0.0.0',
|
|
137
|
-
:port => 3000
|
|
138
|
-
)
|
|
139
|
-
|
|
140
133
|
##
|
|
141
134
|
#
|
|
142
135
|
def DefaultUrlOptions.install_before_filter!
|
|
136
|
+
DefaultUrlOptions.configure(
|
|
137
|
+
:host => '0.0.0.0',
|
|
138
|
+
:port => 3000
|
|
139
|
+
) unless DefaultUrlOptions.configured?
|
|
140
|
+
|
|
143
141
|
if defined?(::ActionController::Base)
|
|
144
142
|
::ActionController::Base.module_eval do
|
|
145
143
|
prepend_before_filter do |controller|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification::new do |spec|
|
|
5
5
|
spec.name = "rails_default_url_options"
|
|
6
|
-
spec.version = "1.3.
|
|
6
|
+
spec.version = "1.3.1"
|
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
|
8
8
|
spec.summary = "rails_default_url_options"
|
|
9
9
|
spec.description = "description: rails_default_url_options kicks the ass"
|