alphabetical_paginate 0.2.1 → 0.2.2

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.
@@ -0,0 +1,8 @@
1
+ require 'alphabetical_paginate/view_helpers'
2
+ module AlphabeticalPaginate
3
+ class Railtie < Rails::Railtie
4
+ initializer "alphabetical_paginate.view_helpers" do
5
+ ActionView::Base.send :include, ViewHelpers
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module AlphabeticalPaginate
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -0,0 +1,7 @@
1
+ module AlphabeticalPaginate
2
+ module ViewHelpers
3
+ def alphabetical_paginate
4
+ "test"
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,6 @@
1
1
  require "alphabetical_paginate/version"
2
2
  require "alphabetical_paginate/array"
3
+ require "alphabetical_paginate/railtie" if defined?(Rails)
3
4
 
4
5
  module AlphabeticalPaginate
5
6
  require 'alphabetical_paginate/engine'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphabetical_paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,7 +59,9 @@ files:
59
59
  - lib/alphabetical_paginate.rb
60
60
  - lib/alphabetical_paginate/array.rb
61
61
  - lib/alphabetical_paginate/engine.rb
62
+ - lib/alphabetical_paginate/railtie.rb
62
63
  - lib/alphabetical_paginate/version.rb
64
+ - lib/alphabetical_paginate/view_helpers.rb
63
65
  - vendor/assets/javascripts/alphabetical_paginate.js
64
66
  - vendor/assets/javascripts/index.js
65
67
  homepage: http://google.com