rails-presenter 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/rails_presenter/base.rb +5 -0
- data/lib/rails_presenter/version.rb +1 -1
- 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: 8634186ddde1925543d31f95d933e8fa08d58c99
|
4
|
+
data.tar.gz: ec310225f643038bf050fe95bb75dc15169e7ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c84551b1b706113368a34074f5ebc8df5779d7d0ce973c9a2ad177fddc9145ac2869ff00ec94e1122c1a3205014f047c3279c2075970a52435dfd9d4ea988bc
|
7
|
+
data.tar.gz: c722b5692b1d8bdb055dbb4eb7760c049e9d4c47c95074f7ee3343fe9072d6b0c0998dd7402845312fe2d0f5c18161a48a2de2720b25f7a09b4a4fa3517e5448
|
data/lib/rails_presenter/base.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
class RailsPresenter::Base
|
2
|
+
include ActionView::Context
|
2
3
|
include Sprockets::Rails::Helper
|
3
4
|
def initialize
|
4
5
|
self.debug_assets = Rails.application.config.assets.debug
|
@@ -7,4 +8,8 @@ class RailsPresenter::Base
|
|
7
8
|
self.assets_environment = Rails.application.assets if Rails.application.config.assets.compile
|
8
9
|
self.assets_manifest = Rails.application.assets_manifest
|
9
10
|
end
|
11
|
+
|
12
|
+
def t(*args)
|
13
|
+
I18n.t(*args)
|
14
|
+
end
|
10
15
|
end
|