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)


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

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

#to_sObject



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

def to_s
  title.presence || model_name.human
end