This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
_compile_options(options)
private
Options support the same options as filters themselves (and support
symbols, string, procs, and objects), so compile a conditional expression
based on the options
# File activesupport/lib/active_support/callbacks.rb, line 252
def _compile_options(options)
conditions = ["true"]
unless options[:if].empty?
conditions << Array.wrap(_compile_filter(options[:if]))
end
unless options[:unless].empty?
conditions << Array.wrap(_compile_filter(options[:unless])).map {|f| "!#{f}"}
end
conditions.flatten.join(" && ")
end