Permalink
Browse files

Bugs in tour.

  • Loading branch information...
waratuman committed Jun 14, 2013
1 parent 117048b commit 758a6aa735c2359b72d2e16a747a778173dd8ee9
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/mls/models/tour.rb
  2. +1 −1 mls.gemspec
View
@@ -13,11 +13,13 @@ class MLS::Tour < MLS::Resource
attr_accessor :client, :listing
def claim(agent)
+ self.agent_id = agent.id
MLS.post("/tours/#{token}/claim", {:agent_id => agent.id})
end
- def decline(comments=nil)
- MLS.post("/tours/#{token}/decline", {:agent_comments => reasons})
+ def decline(notes=nil)
+ self.agent_comments = notes
+ MLS.post("/tours/#{token}/decline", {:agent_comments => notes})
end
def view
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.5.1'
+ s.version = '0.5.2'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit 758a6aa

Please sign in to comment.