lib/app/models/component.rb in actic-0.0.3 vs lib/app/models/component.rb in actic-0.0.4
- old
+ new
@@ -1,5 +1,6 @@
class Component < ActiveRecord::Base
+ validates :ical, :presence => true, :format => /BEGIN:\.*/
attr_accessor :component
after_initialize :set_component
before_save :trigger_parent_component#, :except => :create
def set_component