Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Use scope access
# Even when you create objects they should be properly scoped... Remember this example?
t =
t.status = "RT #{}: #{@tweet.status}"
t.original_tweet = @tweet
t.user = current_user
# A simplified version of this, properly scoped might look like this:
:status => "RT #{}: #{@tweet.status}",
:original_tweet => @tweet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment