lib/partitioned/partitioned_base.rb in partitioned-1.3.5 vs lib/partitioned/partitioned_base.rb in partitioned-2.0.0

- old
+ new

@@ -148,11 +148,11 @@ # active record find() to a specific child table and alias it to the name of the # parent table (so activerecord can generally work with it) # # Use as: # - # Foo.from_partition(KEY).find(:first) + # Foo.from_partition(KEY).first # # where KEY is the key value(s) used as the check constraint on Foo's table. # # @param [*Array<Object>] partition_field the field values to partition on # @return [Hash] the scoping @@ -166,10 +166,10 @@ # active record find() to a specific child table. Is probably best used in advanced # activerecord queries when a number of tables are involved in the query. # # Use as: # - # Foo.from_partition_without_alias(KEY).find(:all, :select => "*") + # Foo.from_partition_without_alias(KEY).all # # where KEY is the key value(s) used as the check constraint on Foo's table. # # it's not obvious why :select => "*" is supplied. note activerecord wants # to use the name of parent table for access to any attributes, so without