Exception: Statecraft::CompositePrimaryKeyUnsupported
- Defined in:
- lib/statecraft/errors.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model:) ⇒ CompositePrimaryKeyUnsupported
constructor
A new instance of CompositePrimaryKeyUnsupported.
Constructor Details
#initialize(model:) ⇒ CompositePrimaryKeyUnsupported
Returns a new instance of CompositePrimaryKeyUnsupported.
102 103 104 105 106 |
# File 'lib/statecraft/errors.rb', line 102 def initialize(model:) @model = model super("#{model.name} uses a composite primary key; statecraft v0 supports " \ "single-column primary keys only") end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
100 101 102 |
# File 'lib/statecraft/errors.rb', line 100 def model @model end |