module NeoGruby::Sequel::Plugins::UuidPk::ClassMethods
Public Instance Methods
[](value)
click to toggle source
Calls superclass method
# File lib/neo_gruby/sequel/plugins/uuid_pk.rb, line 37 def [](value) super(UuidPk.parse_id(value, true)) end
find(where)
click to toggle source
Calls superclass method
# File lib/neo_gruby/sequel/plugins/uuid_pk.rb, line 19 def find(where) if where.is_a? Hash where[:id] = UuidPk.parse_id(where[:id], true) if where[:id] where['id'] = UuidPk.parse_id(where['id'], true) if where['id'] end super(where) end
where(params)
click to toggle source
Calls superclass method
# File lib/neo_gruby/sequel/plugins/uuid_pk.rb, line 28 def where(params) if params.is_a? Hash params[:id] = UuidPk.parse_id(params[:id], true) if params[:id] params['id'] = UuidPk.parse_id(params['id'], true) if params['id'] end super(params) end