calentry js interface

This commit is contained in:
Andreas Stephanides
2014-11-16 14:30:04 +01:00
parent 4c47919543
commit c49ec5e736
11 changed files with 71 additions and 43 deletions

View File

@@ -129,7 +129,7 @@ class Ability
can [:show,:index], Calendar
can [:edit, :update,:new,:create,:verwalten], Calendar
can [:edit, :update,:new,:create,:verwalten], Calentry
can [:edit, :update,:new,:create,:verwalten,:delete], Calentry
end
if( user.has_role?("fetadmin"))
can [:delete],Calendar

View File

@@ -13,7 +13,7 @@
#
class Calentry < ActiveRecord::Base
attr_accessible :ende, :start, :summary, :typ,:calendar_ids, :calendar, :dauer
attr_accessible :ende, :start, :summary, :typ,:calendar_ids, :calendar, :dauer, :object_id, :object_type
belongs_to :calendar
#belongs_to :neuigkeit
validates :start, :presence => true