aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTeddy Wing2017-06-19 17:51:09 +0200
committerTeddy Wing2017-06-19 17:51:09 +0200
commita7701750889ea809fdaa1a745679131a00e9b8a1 (patch)
treec74e849dcfd82e09e4b236c3c81ee2ba45b5662a /app
parentf483c2db410f78287e77ac968a7229b0d5e5b835 (diff)
downloadchouette-core-a7701750889ea809fdaa1a745679131a00e9b8a1.tar.bz2
CompanyDecorator: Fix helper method call
The helper method should be called on the `h` object because we're in a decorator. Also get rid of the extra space. Refs #3479
Diffstat (limited to 'app')
-rw-r--r--app/decorators/company_decorator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/company_decorator.rb b/app/decorators/company_decorator.rb
index 5393a5c3a..51c1f3c61 100644
--- a/app/decorators/company_decorator.rb
+++ b/app/decorators/company_decorator.rb
@@ -43,7 +43,7 @@ class CompanyDecorator < Draper::Decorator
object
),
method: :delete,
- data: { confirm: t('companies.actions.destroy_confirm') }
+ data: { confirm: h.t('companies.actions.destroy_confirm') }
)
end