who_comes_first 0.0.0 → 0.0.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 (2) hide show
  1. data/lib/who_comes_first.rb +2 -2
  2. metadata +1 -1
@@ -1,5 +1,5 @@
1
1
  class WhoComesFirst
2
-
2
+
3
3
  def self.who_comes_first(model,methods = [],operation = :create)
4
4
  callbacks_name_list = [:before_validation,
5
5
  "before_validation_on_#{operation}".to_sym,
@@ -14,7 +14,7 @@ class WhoComesFirst
14
14
  ]
15
15
  callbacks_name_list.each { |callback_name| model.send(callback_name).each { |cb| process_callback(cb,methods)}}
16
16
  end
17
-
17
+ private
18
18
  def self.process_callback(cb,methods)
19
19
  unless cb.method.to_s =~ /before_save_collection_association|autosave_associated_records/i
20
20
  print_array = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: who_comes_first
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: