Module: Trendable::Concern

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

Instance Method Summary collapse

Instance Method Details



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

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


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

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