Permalink
Browse files

use kaminari

  • Loading branch information...
1 parent 7555a49 commit 384f17b1f8b16f27a20a62cd693deaf437fb1273 Kosuke Tanabe committed Jul 23, 2012
Showing with 4 additions and 6 deletions.
  1. +1 −3 app/models/barcode.rb
  2. +1 −1 enju_barcode.gemspec
  3. +1 −1 lib/enju_barcode/engine.rb
  4. +1 −1 lib/enju_barcode/version.rb
View
@@ -9,9 +9,7 @@ class Barcode < ActiveRecord::Base
attr_accessor :start_rows, :start_cols
- def self.per_page
- 10
- end
+ paginates_per 10
def generate_barcode
self.data = Barby::Code39.new(code_word).to_svg(:width => 150, :height => 70)
View
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_dependency "rqrcode"
s.add_dependency "devise"
s.add_dependency "cancan"
- s.add_dependency "will_paginate"
+ s.add_dependency "kaminari"
s.add_development_dependency "sqlite3"
s.add_development_dependency "rspec-rails"
@@ -1,6 +1,6 @@
require 'devise'
require 'cancan'
-require 'will_paginate'
+require 'kaminari'
module EnjuBarcode
class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
module EnjuBarcode
- VERSION = "0.0.3"
+ VERSION = "0.1.0"
end

0 comments on commit 384f17b

Please sign in to comment.