Skip to content

Commit

Permalink
Minor formatting update
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroadway committed Feb 1, 2013
1 parent e5efb70 commit 531b26b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/ActiveResource/ActiveResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,13 @@ public function find ($id = false, $options = array ()) {
$options_string = '?' . http_build_query ($options);
}
if ($id == 'all' || $id == false) {
// URL/plural.xml?someparam=1
$url = $this->site . $this->element_name_plural . '.xml';
return $this->_send_and_receive ($url . $options_string, 'GET');
}
}

// URL/plural.xml?someparam=1
return $this->_send_and_receive ($this->site . $this->element_name_plural . '/' . $id . '.xml' . $options_string, 'GET');
// URL/plural/id.xml?someparam=1
return $this->_send_and_receive ($this->site . $this->element_name_plural . '/' . $id . '.xml' . $options_string, 'GET');
}

/**
Expand Down

0 comments on commit 531b26b

Please sign in to comment.