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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7ed311356ca81678f2697203e4608c1a78493f5
4
- data.tar.gz: 68e2483165a2a547dab1c7812d7e053efe892b94
3
+ metadata.gz: 8634186ddde1925543d31f95d933e8fa08d58c99
4
+ data.tar.gz: ec310225f643038bf050fe95bb75dc15169e7ba3
5
5
  SHA512:
6
- metadata.gz: 014f53391b32c51b37a2c2429c842dd4d53e53a7ce7fe3bea44a965d65dde3aa304b7116f34f04a94c335566d3309e2d1b0314fbbfb6324c15a9fa4090f0bd07
7
- data.tar.gz: 8f22d5422d42c0cd03228c7994b19940cab4cac8f0f9d1fd81689f41f4dcf0dd9b60fc57060c048e3dc9e3df0b8d97561cd194704b8a2fa323069cfdf07b1946
6
+ metadata.gz: 6c84551b1b706113368a34074f5ebc8df5779d7d0ce973c9a2ad177fddc9145ac2869ff00ec94e1122c1a3205014f047c3279c2075970a52435dfd9d4ea988bc
7
+ data.tar.gz: c722b5692b1d8bdb055dbb4eb7760c049e9d4c47c95074f7ee3343fe9072d6b0c0998dd7402845312fe2d0f5c18161a48a2de2720b25f7a09b4a4fa3517e5448
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsPresenter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Jobin