module Flatter::Extensions::Skipping
Public Instance Methods
extract_data(params)
click to toggle source
# File lib/flatter/extensions/skipping.rb, line 11 def extract_data(params) extract_data_without_reject(params).tap do |data| data.reject!{ |params| reject_if[params] } if reject_if? end end
Also aliased as: extract_data_without_reject
ignore_skipped_mountings()
click to toggle source
# File lib/flatter/extensions/skipping.rb, line 48 def ignore_skipped_mountings local_mountings.each do |mapper| mapper.skip! if mapper.skip_if? && instance_exec(&mapper.skip_if) end end
run_save!()
click to toggle source
Calls superclass method
# File lib/flatter/extensions/skipping.rb, line 35 def run_save! skipped? ? true : super end
run_validations!()
click to toggle source
Calls superclass method
# File lib/flatter/extensions/skipping.rb, line 26 def run_validations! if skipped? errors.clear true else super end end
skip!()
click to toggle source
# File lib/flatter/extensions/skipping.rb, line 39 def skip! collection.each(&:skip!) if collection? @skipped = true end
skipped?()
click to toggle source
# File lib/flatter/extensions/skipping.rb, line 44 def skipped? !!@skipped end