trabajo-afectivo/app/controllers/sessions/collection_base.rb

19 lines
467 B
Ruby
Raw Normal View History

2012-10-18 08:10:12 +00:00
module ExtraCollection
2012-10-23 20:25:42 +00:00
def session( collections, user )
2012-10-18 08:10:12 +00:00
# all base stuff
collections['Role'] = Role.all
collections['Group'] = Group.all
collections['Organization'] = Organization.all
end
2012-10-23 20:25:42 +00:00
def push( collections, user )
# all base stuff
collections['Role'] = Role.all
collections['Group'] = Group.all
collections['Organization'] = Organization.all
end
module_function :session, :push
2012-10-18 08:10:12 +00:00
end