Class: Rabarber::Input::Context
- Defined in:
- lib/rabarber/input/context.rb
Instance Attribute Summary
Attributes inherited from Base
#error_message, #error_type, #value
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rabarber::Input::Base
Instance Method Details
#valid? ⇒ Boolean
6 7 8 |
# File 'lib/rabarber/input/context.rb', line 6 def valid? value.nil? || value.is_a?(Class) || value.is_a?(ActiveRecord::Base) && value.persisted? || already_processed? end |