Class: Effective::CpdActivity

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/cpd_activity.rb

Instance Method Summary collapse

Instance Method Details

#amount_static?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'app/models/effective/cpd_activity.rb', line 49

def amount_static?
  amount_label.blank? && amount2_label.blank?
end

#to_sObject



45
46
47
# File 'app/models/effective/cpd_activity.rb', line 45

def to_s
  title.presence || 'activity'
end