Method: ActiveCommand::Command#perform_now
- Defined in:
- lib/active_command/command.rb
#perform_now ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/active_command/command.rb', line 31 def perform_now if self.valid? self.execute else raise ActiveCommand::CommandNotValidError, self.errors. end end |