tralala 1.0.0 → 1.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 (3) hide show
  1. data/lib/tralala.rb +7 -4
  2. data/lib/tralala/version.rb +1 -1
  3. metadata +1 -1
@@ -7,17 +7,20 @@ module Tralala
7
7
  def dingdingdong
8
8
  callstack = caller.reject{|cs| cs.include?('active_record')}
9
9
  puts ""
10
- puts "\e[34mIm You touched me tralala!\e[0m"
10
+ puts "\e[34mIm You touched my tralala!\e[0m"
11
11
  puts " -- #{callstack[1].split(' ').first}"
12
12
  end
13
13
 
14
- private
14
+ def save(*)
15
+ dingdingdong
16
+ super
17
+ end
15
18
 
16
- def save(options={})
19
+ def save!(*)
17
20
  dingdingdong
18
21
  super
19
22
  end
20
23
 
21
24
  end
22
25
 
23
- ActiveRecord::Validations.send(:include, Tralala)
26
+ ActiveRecord::Base.send(:include, Tralala)
@@ -1,3 +1,3 @@
1
1
  module Tralala
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tralala
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: