Module: CalculateStat

Defined in:
lib/enju_core/calculate_stat.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/enju_core/calculate_stat.rb', line 3

def self.included(base)
  base.extend ClassMethods
  base.send :include, InstanceMethods
  base.class_eval do
    validates_presence_of :start_date, :end_date
    validate :check_date
  end
end