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

19 lines
451 B
Ruby
Raw Normal View History

2012-10-18 08:10:12 +00:00
module ExtraCollection
def session(collections)
2012-10-18 08:10:12 +00:00
# all base stuff
collections['Role'] = Role.all
collections['Group'] = Group.all
collections['Organization'] = Organization.all
end
def push(collections)
# 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