bhf 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bhf/platform.rb +3 -3
- metadata +3 -3
data/lib/bhf/platform.rb
CHANGED
@@ -67,10 +67,10 @@ module Bhf
|
|
67
67
|
end
|
68
68
|
|
69
69
|
|
70
|
-
|
71
|
-
chain.page(paginate_options[:page]).per(paginate_options[:per_page])
|
70
|
+
if paginate_options && !sortable
|
71
|
+
chain = chain.page(paginate_options[:page]).per(paginate_options[:per_page])
|
72
72
|
elsif chain == model
|
73
|
-
chain.all
|
73
|
+
chain = chain.all
|
74
74
|
end
|
75
75
|
|
76
76
|
@objects = chain
|
metadata
CHANGED