Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added last action to controller

  • Loading branch information...
commit 6e17043e51f33e5094f42956dc1900d9b2067749 1 parent 0b0a094
@mkristian authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.