Sha256: eb98f7592a87cac3797a427d159a1ba68def75bb2cfc6f28ddbf526bd42eb522
Contents?: true
Size: 419 Bytes
Versions: 73
Compression:
Stored size: 419 Bytes
Contents
module Kernel # Standard in rails. See official documentation[http://api.rubyonrails.org/classes/Object.html] def try(method_id, *args, &block) send(method_id, *args, &block) unless self.nil? end unless method_defined? :try # Standard in rails. See official documentation[http://api.rubyonrails.org/classes/Object.html] def returning(obj) yield obj obj end unless method_defined? :returning end
Version data entries
73 entries across 73 versions & 3 rubygems