Class/Module Index [+]

Quicksearch

Sequel::Plugins::PreparedStatementsSafe::InstanceMethods

Public Instance Methods

before_create() click to toggle source

Merge the current values into the default values to reduce the number of free columns.

# File lib/sequel/plugins/prepared_statements_safe.rb, line 58
def before_create
  if v = model.prepared_statements_column_defaults
    set_values(v.merge(values))
  end
  super
end
save_changes(opts={}) click to toggle source

Always do a full save of all columns to reduce the number of prepared statements that can be used.

# File lib/sequel/plugins/prepared_statements_safe.rb, line 67
def save_changes(opts={})
  save(opts) || false if modified?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.