Exception: DraftPunk::ApprovedVersionIdError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- DraftPunk::ApprovedVersionIdError
- Defined in:
- lib/draft_punk.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ ApprovedVersionIdError
constructor
A new instance of ApprovedVersionIdError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ ApprovedVersionIdError
Returns a new instance of ApprovedVersionIdError.
25 26 27 |
# File 'lib/draft_punk.rb', line 25 def initialize(=nil) = end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/draft_punk.rb', line 28 def to_s "this model doesn't have an approved_version_id column, so you cannot access its draft or approved versions. Add a column approved_version_id (Integer) to enable this tracking." end |