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

NoMethodError: undefined method `each_pair' for nil:NilClass #12

Open
tataihono opened this issue Jan 30, 2015 · 0 comments
Open

NoMethodError: undefined method `each_pair' for nil:NilClass #12

tataihono opened this issue Jan 30, 2015 · 0 comments

Comments

@tataihono
Copy link

Hey Team,

Tried running:
bundle exec rake one_sky:active_record:download

Throws:
NoMethodError: undefined method each_pair for nil:NilClass

Wondering if this a problem with my setup, here or in i18n? Your help is greatly appreciated. Stack-trace below for those who are keen to help 👍

** Invoke one_sky:active_record:download (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute one_sky:active_record:download
Downloading translations for I18n Active Record Backend:
rake aborted!
NoMethodError: undefined method 'each_pair' for nil:NilClass
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-0.7.0/lib/i18n/backend/flatten.rb:55:in 'flatten_keys'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-0.7.0/lib/i18n/backend/flatten.rb:71:in 'flatten_translations'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/i18n-active_record-2d9a22b6a4e5/lib/i18n/backend/active_record.rb:24:in 'store_translations'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-0.7.0/lib/i18n/backend/memoize.rb:19:in 'store_translations'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/active_record_client.rb:26:in 'block (2 levels) in download'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/active_record_client.rb:25:in 'each'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/active_record_client.rb:25:in 'block in download'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/active_record_client.rb:13:in 'each'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/active_record_client.rb:13:in 'download'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/i18n-one_sky-2.0.12/lib/i18n/one_sky/rails/tasks/i18n-one_sky.rake:24:in 'block (3 levels) in <top (required)>'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in 'call'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in 'block in execute'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in 'each'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in 'execute'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in 'block in invoke_with_call_chain'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/2.1.0/monitor.rb:211:in 'mon_synchronize'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in 'invoke_with_call_chain'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in 'invoke'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in 'invoke_task'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in 'block (2 levels) in top_level'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in 'each'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in 'block in top_level'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in 'run_with_threads'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in 'top_level'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in 'block in run'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in 'standard_exception_handling'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in 'run'
/Users/macuser/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rake-10.4.2/bin/rake:33:in '<top (required)>'
/Users/macuser/.rbenv/versions/2.1.5/bin/rake:23:in 'load'
/Users/macuser/.rbenv/versions/2.1.5/bin/rake:23:in '<main>'
Tasks: TOP => one_sky:active_record:download
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

No branches or pull requests

1 participant