Exception: ActiveUrl::RecordInvalid
- Inherits:
-
ActiveUrlError
- Object
- StandardError
- ActiveUrlError
- ActiveUrl::RecordInvalid
- Defined in:
- lib/active_url/validations.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(record) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
4 5 6 7 |
# File 'lib/active_url/validations.rb', line 4 def initialize(record) @record = record super("Validation failed: #{@record.errors..join(", ")}") end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
3 4 5 |
# File 'lib/active_url/validations.rb', line 3 def record @record end |