simple_like 0.2.3 → 0.2.4

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.
@@ -1,15 +1,5 @@
1
1
  module SimpleLike
2
2
  module Target
3
- def self.extended(model_class)
4
- model_class.instance_eval do
5
- extend Target
6
- end
7
- end
8
-
9
- def self.included(model_class)
10
- model_class.extend Target
11
- end
12
-
13
3
  def simple_like
14
4
  has_many :likes, { as: :likeable, dependant: :destroy }
15
5
  end
@@ -1,16 +1,5 @@
1
1
  module SimpleLike
2
2
  module User
3
- def self.extended(model_class)
4
- model_class.instance_eval do
5
- extend User
6
- end
7
- end
8
-
9
- def self.included(model_class)
10
- model_class.extend User
11
- end
12
-
13
-
14
3
  def like!(instance)
15
4
  if is_likeable?(instance)
16
5
  instance.likes << Like.new(author: self) if !like?(instance)
@@ -1,3 +1,3 @@
1
1
  module SimpleLike
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_like
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: