Paweł Kondzior
Ruby Alchemyst · Not a member
Paweł Kondzior's latest activity
Sunday, December 14 2008
-
Paweł Kondzior created the ticket at 3:26 AMSimple example:
class User < ActiveRecord::Base named_scope(:simple_test, lambda { puts self.inspect; {} }) end class Employee < ActiveRecord::Base e...
Wednesday, December 03 2008
-
-
Paweł Kondzior commented at 8:43 AMInternally in Memoizable::Freezable i think it will be DRY to not repeat same code in unmemoizel_all and unmemoize. Obviously i don't know what internal policy ...
-
Paweł Kondzior commented at 8:39 AMIn this example
foois memoized method ?Using unmemoize(:method1, :method2) can be useful when we want to override attribute setter which depends on our memoiz...
Tuesday, December 02 2008
-
Paweł Kondzior created the ticket at 12:04 PMThis patch will allow to unmemoize only specific methods, right now when you want to unmemoize something in instance of method, you must use unmemoize_all
Friday, November 28 2008
-
Paweł Kondzior commented at 10:47 PMI thnik adding :preload_sql for has_many, has_one and has_and_belongs_to_many that will bypass preload_has_and_belongs_to_many_association method would be solut...
Sunday, November 16 2008
-
Paweł Kondzior commented at 5:05 PMcattr_accessor wont work, it will fail all because it will define default_scope for ActiveRecord::Base not for Model that inherts from it. So class var isn't so...
-
-
Paweł Kondzior commented at 2:51 PMdefault_scope with named_scope syntaxt.
class Client < ActiveRecord::Base default_scope :order => 'name DESC' end