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.
124 125 126 127 128 |
# File 'lib/statecraft/errors.rb', line 124 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.
122 123 124 |
# File 'lib/statecraft/errors.rb', line 122 def model @model end |