Module: Trendable::Concern

Extended by:
ActiveSupport::Concern
Defined in:
lib/concerns/trendable.rb

Instance Method Summary collapse

Instance Method Details



15
16
17
# File 'lib/concerns/trendable.rb', line 15

def boost_trending_power!( add_value = 1000 )
  self.update_attributes( trending_power: trending_power + add_value )
end


19
20
21
# File 'lib/concerns/trendable.rb', line 19

def fade_out_trending_power!( multiplier = 0.9 )
  self.update_attributes( trending_power: trending_power * multiplier )
end