Module: Tralala
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/tralala.rb,
lib/tralala/version.rb
Constant Summary collapse
- VERSION =
"1.0.1"
Instance Method Summary collapse
Instance Method Details
#dingdingdong ⇒ Object
7 8 9 10 11 12 |
# File 'lib/tralala.rb', line 7 def dingdingdong callstack = caller.reject{|cs| cs.include?('active_record')} puts "" puts "\e[34mIm You touched my tralala!\e[0m" puts " -- #{callstack[1].split(' ').first}" end |
#save ⇒ Object
14 15 16 17 |
# File 'lib/tralala.rb', line 14 def save(*) dingdingdong super end |
#save! ⇒ Object
19 20 21 22 |
# File 'lib/tralala.rb', line 19 def save!(*) dingdingdong super end |