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

Already on GitHub? Sign in to your account

Add support for writing to read-only namespaces #2

Merged
merged 3 commits into from Feb 2, 2013

Conversation

Projects
None yet
2 participants
Contributor

eugeneotto commented Nov 2, 2012

This branch adds support for passing a secret key in the query string. The secret key is required for write access to protected namespaces (in beta right now).

@oscardelben oscardelben commented on an outdated diff Nov 4, 2012

lib/firebase.rb
def base_uri=(other)
other = other + "/" if other[-1] != "/"
@base_uri = other
end
+ def key=(key)
+ @key = key
+ end
@oscardelben

oscardelben Nov 4, 2012

Owner

attr_accessor should autogenerate this method for you.

Owner

oscardelben commented Nov 4, 2012

Looks good. I've left a minor comment then I'll merge and push to Rubygems.

@oscardelben oscardelben merged commit 27eb8ea into oscardelben:master Feb 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment