neutral 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/neutral/engine.rb +1 -5
- data/lib/neutral/helpers/current_voter.rb +15 -0
- data/lib/neutral/version.rb +1 -1
- data/lib/neutral.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83ee56c8fc7a787238c1e0ba3c22111fb939fc1
|
4
|
+
data.tar.gz: 0d4aa6e7ac6764008c1906a34fb9ce5020ea0c1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 270976a25f3af1dd261df7017f9fb5634dcfd16f2f4027696e9b6cfc26ccca3020a4ec105c79f937be4aa56e7121b8d0d6dde4ca3cc2e8581d07549a632d841d
|
7
|
+
data.tar.gz: 4575c4016b18eba8ddcbaa1a98df2cb3212fd0729e08c0524875491779cb5ebcd0cfdfcc23872ebf514474fe9d76288b2c60273b9ad999e33976369706ae459b
|
data/Gemfile.lock
CHANGED
data/lib/neutral/engine.rb
CHANGED
@@ -6,14 +6,10 @@ module Neutral
|
|
6
6
|
::ActiveSupport.on_load(:active_record) { extend Neutral::Model::ActiveRecordExtension }
|
7
7
|
::ActiveSupport.on_load(:action_view) { include Neutral::Helpers::ActionViewExtension }
|
8
8
|
::ActionDispatch::Routing::Mapper.send(:include, Neutral::Helpers::Routes)
|
9
|
+
::ApplicationController.send(:include, Neutral::Helpers::CurrentVoter)
|
9
10
|
end
|
10
11
|
|
11
12
|
config.after_initialize do
|
12
|
-
::ApplicationController.class_eval do
|
13
|
-
alias_method :current_voter, Neutral.config.current_voter_method
|
14
|
-
helper_method :current_voter
|
15
|
-
end
|
16
|
-
|
17
13
|
require 'neutral/application_controller'
|
18
14
|
end
|
19
15
|
|
data/lib/neutral/version.rb
CHANGED
data/lib/neutral.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neutral
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Tóth
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- lib/neutral/engine.rb
|
278
278
|
- lib/neutral/errors.rb
|
279
279
|
- lib/neutral/helpers/action_view_extension.rb
|
280
|
+
- lib/neutral/helpers/current_voter.rb
|
280
281
|
- lib/neutral/helpers/routes.rb
|
281
282
|
- lib/neutral/icons/collection.rb
|
282
283
|
- lib/neutral/icons/set.rb
|