2012-10-18 08:10:12 +00:00
|
|
|
module ExtraCollection
|
2012-10-23 19:12:00 +00:00
|
|
|
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
|
2012-10-23 19:12:00 +00:00
|
|
|
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
|