subdomain_locale 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/subdomain_locale/railtie.rb +15 -0
- data/lib/subdomain_locale.rb +4 -1
- metadata +6 -5
@@ -0,0 +1,15 @@
|
|
1
|
+
module SubdomainLocale
|
2
|
+
class Railtie < ::Rails::Railtie
|
3
|
+
|
4
|
+
initializer "subdomain_locale.url_helpers" do
|
5
|
+
Rails.application.routes.url_helpers.send :include, SubdomainLocale::UrlFor
|
6
|
+
end
|
7
|
+
|
8
|
+
initializer "subdomain_locale.controller" do
|
9
|
+
ActiveSupport.on_load :action_controller do
|
10
|
+
include SubdomainLocale::Controller
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
data/lib/subdomain_locale.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
require "subdomain_locale/railtie" if defined?(Rails)
|
2
|
+
|
1
3
|
module SubdomainLocale
|
2
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.3"
|
3
5
|
autoload :UrlFor, "subdomain_locale/url_for"
|
4
6
|
autoload :Controller, "subdomain_locale/controller"
|
5
7
|
autoload :Locale, "subdomain_locale/locale"
|
8
|
+
autoload :Railtie, "subdomain_locale/railtie"
|
6
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subdomain_locale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &70149124254240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.10'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70149124254240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
-
requirement: &
|
27
|
+
requirement: &70149124253660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '2.12'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70149124253660
|
36
36
|
description: ''
|
37
37
|
email:
|
38
38
|
- sema@sema.in
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/subdomain_locale.rb
|
45
45
|
- lib/subdomain_locale/controller.rb
|
46
46
|
- lib/subdomain_locale/locale.rb
|
47
|
+
- lib/subdomain_locale/railtie.rb
|
47
48
|
- lib/subdomain_locale/url_for.rb
|
48
49
|
- test/controller_test.rb
|
49
50
|
- test/i18n_stub.rb
|