live-front-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/live-front-rails.rb +5 -1
- data/lib/live-front/version.rb +1 -1
- data/spec/spec_helper.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56246e399da94cc709cedba4d871227860de7277
|
4
|
+
data.tar.gz: ee5647238cd69a2a4afd38d7d775072f55e480f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39457c74264ffbc5649e730b5cbded7381eb9662685d725afa1d9ff0430f581c2970eb9d4cfe88d91f5cab3dad07331d4f53c39da86b3f1635c79f7fb7e35505
|
7
|
+
data.tar.gz: 6efdb2a013cbcf5f2580aeec1f8d81501175e4f21be89a97936080015533d34b19ec461f429874165521786f85d23b69d2e9fa4d76c328fd06284989d09f7c5b
|
data/lib/live-front-rails.rb
CHANGED
@@ -4,7 +4,7 @@ require 'live-front/tab_helper'
|
|
4
4
|
require 'live-front/sign_in_form_helper'
|
5
5
|
|
6
6
|
module LiveFront
|
7
|
-
if defined?
|
7
|
+
if defined? Rails
|
8
8
|
class Railtie < ::Rails::Railtie
|
9
9
|
initializer 'live_front.view_helpers' do
|
10
10
|
ActionView::Base.send :include, LiveFront::ApplicationHelper
|
@@ -13,4 +13,8 @@ module LiveFront
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
17
|
+
if defined? I18n
|
18
|
+
I18n.load_path += Dir.glob(File.expand_path('../../config/locales/*.yml', __FILE__))
|
19
|
+
end
|
16
20
|
end
|
data/lib/live-front/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -16,9 +16,6 @@ include LiveFront::ApplicationHelper
|
|
16
16
|
include LiveFront::TabHelper
|
17
17
|
include LiveFront::SignInFormHelper
|
18
18
|
|
19
|
-
I18n.load_path += Dir[
|
20
|
-
Pathname.new(File.expand_path('../../config/locales', __FILE__)).join('*.{rb,yml}')
|
21
|
-
]
|
22
19
|
I18n.default_locale = :en
|
23
20
|
|
24
21
|
class FooController < ActionController::Base
|