Module: ScaffoldingExtensions::Sequel

Included in:
Sequel::Model
Defined in:
lib/scaffolding_extensions/model/sequel.rb

Overview

Instance methods added to Sequel::Model to allow it to work with Scaffolding Extensions.

Instance Method Summary collapse

Instance Method Details

#scaffold_attribute_value(field) ⇒ Object

Get value for given attribute



6
7
8
# File 'lib/scaffolding_extensions/model/sequel.rb', line 6

def scaffold_attribute_value(field)
  values[field]
end

#scaffold_idObject

the value of the primary key for this object



11
12
13
# File 'lib/scaffolding_extensions/model/sequel.rb', line 11

def scaffold_id
  pk 
end