hyper-mesh
hyper-mesh copied to clipboard
add slice method to ActiveRecord models
Adapted from active record:
module ActiveRecord
module InstanceMethods
def slice(methods)
Hash[methods.map! { |method| [method, send(method)] }]
end
end
end