lib/view_models/extensions/model_reader.rb
# Extract filter_through options from the options hash if there are any.
# @param [Hash] options the options to split
#
Extract filter_through options from the options hash if there are any.
Extract filter_through options from the options hash if there are any .
def split options
          @filters = if options.last.kind_of?(Hash)
            [*(options.pop[:filter_through])].reverse
          else
            []
          end
          @attributes = options
        end
def split options @filters = if options . last . kind_of? ( Hash ) [ * ( options . pop [ :filter_through ] ) ] . reverse else [ ] end @attributes = options end
Extract filter_through options from the options hash if there are any.
Extract filter_through options from the options hash if there are any .
options
<not_specific>
<not_specific>
options the options to split
options the options to split