Skip to content

Instantly share code, notes, and snippets.

@jpuccino
Created August 20, 2014 19:59
Show Gist options
  • Save jpuccino/bf4f441c508150506437 to your computer and use it in GitHub Desktop.
Save jpuccino/bf4f441c508150506437 to your computer and use it in GitHub Desktop.
Interesting
[101, 110] in /Users/John/Projects/aptana3_workspace/toro/app/models/advertiser.rb
101: def self_link
102: # needed because otherwise would try 'advertisers_url'
103: {
104: 'self' => {
105: 'href' => rtb_advertiser_url(self)
106: }
=> 107: }
108: end
109:
110: end
(byebug) pp self
#<Advertiser id: 5477, name: "Test 1", created_at: "2014-08-20 19:55:34", updated_at: "2014-08-20 19:55:34", orders_count: 2, creatives_count: 2>
(byebug) pp default_url_options
{:host=>"Johns-MacBook-Pro.local", :protocol=>"https", :format=>:json}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment