Class: DataMapper::Query
- Inherits:
-
Object
- Object
- DataMapper::Query
- Defined in:
- lib/appengine-paginator/datamapper_ext.rb
Instance Method Summary collapse
Instance Method Details
#old_update ⇒ Object
11 |
# File 'lib/appengine-paginator/datamapper_ext.rb', line 11 alias :old_update :update |
#update(other) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/appengine-paginator/datamapper_ext.rb', line 14 def update(other) class << self; def singleton_class; self; end ; end @cursor = other[:cursor] @cursor = @cursor.to_java if @cursor.instance_of? Paginator::Cursor singleton_class.class.send :define_method, :cursor do @cursor end other.delete :cursor old_update(other) end |