Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add relative_time_helpers plugin

git-svn-id: http://ar-code.svn.engineyard.com/lighthouse-api@14 d98f8484-0aa7-43af-80ea-302c351499d6
  • Loading branch information...
commit 264b9f8444a034794a1eac961c863ae54ba2ae43 1 parent 7fd803b
@technoweenie technoweenie authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 lib/lighthouse.rb
View
24 lib/lighthouse.rb
@@ -95,6 +95,18 @@ class Project < Lighthouse::Base
def tickets(options = {})
Ticket.find(:all, :params => options.update(:project_id => id))
end
+
+ def messages(options = {})
+ Message.find(:all, :params => options.update(:project_id => id))
+ end
+
+ def milestones(options = {})
+ Milestone.find(:all, :params => options.update(:project_id => id))
+ end
+
+ def bins(options = {})
+ Bin.find(:all, :params => options.update(:project_id => id))
+ end
end
# Find tickets
@@ -122,4 +134,16 @@ def tickets(options = {})
class Ticket < Lighthouse::Base
site_format << '/projects/:project_id'
end
+
+ class Message < Lighthouse::Base
+ site_format << '/projects/:project_id'
+ end
+
+ class Milestone < Lighthouse::Base
+ site_format << '/projects/:project_id'
+ end
+
+ class Bin < Lighthouse::Base
+ site_format << '/projects/:project_id'
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.