Skip to content

Instantly share code, notes, and snippets.

@k2052
Created October 12, 2012 00:07
Show Gist options
  • Save k2052/3876528 to your computer and use it in GitHub Desktop.
Save k2052/3876528 to your computer and use it in GitHub Desktop.
Imperator Command With Errors
class CommandWithErrors < Imperator::Command
def initialize(*args)
super(*args)
@errors = ActiveModel::Errors.new(self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment