set up abilities

This commit is contained in:
Stella Rouzi 2014-07-13 08:50:46 +03:00
parent c3ed57e3e9
commit 40098183e4
4 changed files with 152 additions and 12 deletions

View file

@ -4,6 +4,7 @@
class Conference < ActiveRecord::Base
require 'uri'
serialize :events_per_week, Hash
resourcify # Needed to call 'Conference.with_role' in /models/ability.rb and admin_ability.rb
attr_accessible :title, :short_title, :social_tag, :contact_email, :timezone, :html_export_path,
:start_date, :end_date, :rooms_attributes, :tracks_attributes,