Skip to content

Explicity call the #t method on I18n#2564

Merged
mshibuya merged 1 commit into
railsadminteam:masterfrom
buren:i18n-fix
Mar 21, 2016
Merged

Explicity call the #t method on I18n#2564
mshibuya merged 1 commit into
railsadminteam:masterfrom
buren:i18n-fix

Conversation

@buren
Copy link
Copy Markdown
Contributor

@buren buren commented Feb 21, 2016

I'm building an API using rails-api and I had the same issue as described in #2293, so I added require: false to my Gemfile and explicitly called require 'rails-api' in my ApplicationController.
When I then saved an record from with in rails admin I got an error undefined method 't' for #<RailsAdmin::MainController:0x007f99a7bbc978>.
The fix is very simple as you can see :)

thanks for an awesome gem! ⭐

mshibuya added a commit that referenced this pull request Mar 21, 2016
Explicity call the #t method on I18n
@mshibuya mshibuya merged commit 355dc80 into railsadminteam:master Mar 21, 2016
@mshibuya
Copy link
Copy Markdown
Member

Thanks!

@buren buren deleted the i18n-fix branch March 22, 2016 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants