module ScaffoldingExtensions::Sequel

  1. lib/scaffolding_extensions/model/sequel.rb

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

Methods

Public Instance

  1. scaffold_attribute_value
  2. scaffold_id

Public Instance methods

scaffold_attribute_value (field)

Get value for given attribute

[show source]
# File lib/scaffolding_extensions/model/sequel.rb, line 6
def scaffold_attribute_value(field)
  values[field]
end
scaffold_id ()

the value of the primary key for this object

[show source]
# File lib/scaffolding_extensions/model/sequel.rb, line 11
def scaffold_id
  pk 
end