Module: ActsAsWorkingDays::ClassMethods
- Defined in:
- lib/acts_as_working_days.rb
Instance Method Summary collapse
-
#acts_as_working_days ⇒ Object
any method placed here will apply to classes, like Hickwall.
Instance Method Details
#acts_as_working_days ⇒ Object
any method placed here will apply to classes, like Hickwall
8 9 10 11 12 13 |
# File 'lib/acts_as_working_days.rb', line 8 def acts_as_working_days # adding relationship to self class has_many :working_days, :as => :workable accepts_nested_attributes_for :working_days, :allow_destroy => true send :include, InstanceMethods end |