Change order in generate_rs so that stash->{class} always overrides ->class Add tests
[catagits/Catalyst-Controller-DBIC-API.git] / lib / Catalyst / Controller / DBIC / API / StaticArguments.pm
index ae53e09..a600e20 100644 (file)
@@ -46,8 +46,8 @@ foreach my $var (qw/create_requires create_allows update_requires update_allows/
         }
     );
 
-    before "set_${var}_column" => sub { $_[0]->check_column_relation($_[2], 1) }; #"
-    before "insert_${var}_column" => sub { $_[0]->check_column_relation($_[2], 1) }; #"
+    before "set_${var}_column" => sub { $_[0]->check_column_relation($_[2], 1) };
+    before "insert_${var}_column" => sub { $_[0]->check_column_relation($_[2], 1) };
 }
 
 =attribute_public prefetch_allows is: ro, isa: ArrayRef[ArrayRef|Str|HashRef]
@@ -132,7 +132,7 @@ page_arg controls how to reference 'page' in the the request_data
 
 has 'page_arg' => ( is => 'ro', isa => Str, default => 'list_page' );
 
-=attribute_public offset_arg is: ro, isa: Str, default: 'offset'
+=attribute_public offset_arg is: ro, isa: Str, default: 'list_offset'
 
 offset_arg controls how to reference 'offset' in the the request_data