Revision 630061d2
Added by Michael Moll almost 6 years ago
app/models/trends/fact_trend.rb | ||
---|---|---|
class FactTrend < Trend
|
||
validates :trendable_id, :presence => true, :uniqueness => {:scope => [:trendable_type, :fact_value] }, :allow_blank => false
|
||
validates :trendable_id, :presence => true, :uniqueness => {:scope => [:trendable_type, :fact_value] }, :allow_blank => false
|
||
|
||
before_save :update_fact_name
|
||
|
Also available in: Unified diff
Fixes #19775 - Fix Layout/ExtraSpacing cop