Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicity call the #t method on I18n #2564

Merged
merged 1 commit into from
Mar 21, 2016
Merged

Explicity call the #t method on I18n #2564

merged 1 commit into from
Mar 21, 2016

Conversation

buren
Copy link
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
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