pagination_scope 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/pagination_scope.rb +1 -1
  2. data/rails/init.rb +4 -2
  3. metadata +1 -1
@@ -1,7 +1,7 @@
1
1
  require 'activesupport'
2
2
 
3
3
  module PaginationScope
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
 
6
6
  class << self
7
7
  def included(base)
@@ -1,3 +1,5 @@
1
- require 'pagination_scope'
1
+ require File.join(File.dirname(__FILE__), %w(.. lib pagination_scope))
2
2
 
3
- ActiveRecord::Base.send :include, PaginationScope
3
+ ActiveRecord::Base.class_eval do
4
+ include PaginationScope
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagination_scope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi