Created
October 12, 2012 00:07
-
-
Save k2052/3876528 to your computer and use it in GitHub Desktop.
Imperator Command With Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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