Module: Zena::Acts::SecureNode::ClassMethods

Defined in:
lib/zena/acts/secure_node.rb

Overview

InstanceMethods

Instance Method Summary collapse

Instance Method Details

#clean_options(options) ⇒ Object

‘from’ and ‘joins’ are removed: this method is used when receiving calls from zafu. Changing the source table removes the secure scope.



429
430
431
432
433
# File 'lib/zena/acts/secure_node.rb', line 429

def clean_options(options)
  options.reject do |k,v|
    ! [ :conditions, :select, :include, :offset, :limit, :order, :lock ].include?(k)
  end
end