Skip to content
Browse files

added last action to controller

  • Loading branch information...
1 parent 0b0a094 commit 6e17043e51f33e5094f42956dc1900d9b2067749 @mkristian committed Jan 28, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/ixtlan/errors/cuba.rb
View
5 lib/ixtlan/errors/cuba.rb
@@ -25,6 +25,9 @@ module Ixtlan
module Errors
class Cuba < ::CubaAPI
define do
+ on get, 'last' do
+ write Ixtlan::Errors::Error.last
+ end
on get, :number do |number|
write Ixtlan::Errors::Error.get!( number )
end
@@ -34,4 +37,4 @@ class Cuba < ::CubaAPI
end
end
end
-end
+end

0 comments on commit 6e17043

Please sign in to comment.
Something went wrong with that request. Please try again.