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

dependency_map.rb:96:in `[]': no implicit conversion of Symbol into Integer (TypeError) #8

Open
eflukx opened this issue Dec 21, 2015 · 0 comments

Comments

@eflukx
Copy link

eflukx commented Dec 21, 2015

/grape-reload-ad29dd32ab27/lib/grape/reload/dependency_map.rb:96:in `[]': no implicit conversion of Symbol into Integer (TypeError)

Got above error whilst starting rack app and a file containing

  def dummy_devices_learn
    hash_to_be_inserted = {:actions => ["learn"]}

    dummy_devices.map { |key, value|
      [key, value.merge hash_to_be_inserted]
    }.to_h

  end

this seems to resolve the issue

  def dummy_devices_learn
    hash_to_be_inserted = {:actions => ["learn"]}

    dummy_devices.map { |key, value|
      [key, value.merge(hash_to_be_inserted)]
    }.to_h

  end

Be aware of the brackets around hash_to_be_inserted

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