best_boy 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ if defined?(WillPaginate)
2
+ ActiveSupport.on_load :active_record do
3
+ module WillPaginate
4
+ module ActiveRecord
5
+ module RelationMethods
6
+ alias_method :per, :per_page
7
+ end
8
+ end
9
+ module ActionView
10
+ alias_method :paginate, :will_paginate
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module BestBoy
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -16,24 +16,4 @@ BestBoy.setup do |config|
16
16
 
17
17
  # Define custom redirect path as string p.e. "/admin" (default = nil)
18
18
  #config.custom_redirect = nil
19
- end
20
-
21
- # if you are using will_paginate in your app project, you will need this uncommended
22
- # this is a temporary fix that forces will_paginate to behave like kaminari
23
-
24
- # module WillPaginate
25
- #  # make will paginate behave like kaminari
26
- #  module ActiveRecord
27
- #    module RelationMethods
28
- #      def per(value = nil)
29
- #        per_page(value)
30
- #      end
31
- #    end
32
- #  end
33
-
34
- #  module ActionView
35
- #    def paginate(collection = nil, options = {})
36
- #      will_paginate(collection, options)
37
- #    end
38
- #  end
39
- # end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: best_boy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -171,6 +171,7 @@ files:
171
171
  - app/views/best_boy/best_boy_events/stats.html.erb
172
172
  - app/views/layouts/best_boy_backend.html.erb
173
173
  - best_boy.gemspec
174
+ - config/initializers/will_paginate.rb
174
175
  - config/routes.rb
175
176
  - db/bestboy.db
176
177
  - lib/best_boy.rb