lib/simple_admin.rb in simple_admin-0.5.2 vs lib/simple_admin.rb in simple_admin-0.6.0
- old
+ new
@@ -109,6 +109,14 @@
def initialize(e)
@message = "SimpleAdmin interface unknown, make sure you mount SimpleAdmin in your routes and that you have registered an interface for this resource"
end
end
+
+ class ActionNotAllowed < StandardError
+ attr_accessor :message
+
+ def initialize(action)
+ @message = "SimpleAdmin #{action} action undefined, make sure you have allowed this action in your interface definition."
+ end
+ end
end