app/models/reference_analysis.rb
# get key/value options pairs as hash
get key/value options pairs as hash
get key / value options pairs as hash
def options
    opts = {}
    self.reference_analysis_options.each do |opt|
      opts.merge!({opt.name.to_sym => opt.value})
    end
    opts
  end
def options opts = { } self . reference_analysis_options . each do | opt | opts . merge! ( { opt . name . to_sym => opt . value } ) end opts end
get key/value options pairs as hash
get key / value options pairs as hash