module Georgia
  module UsersHelper

    def permissions_view
      Georgia.permissions.map{|section, actions| permission_table_tag(section, actions)}.join().html_safe
    end

    def permission_table_tag section, actions
      PermissionTablePresenter.new(self, section, actions).to_s
    end

  end
end
module Georgia
  module UsersHelper

    def permissions_view
      Georgia.permissions.map{|section, actions| permission_table_tag(section, actions)}.join().html_safe
    end

    def permission_table_tag section, actions
      PermissionTablePresenter.new(self, section, actions).to_s
    end

    def georgia_roles_collection
      @georgia_role_collection ||= Georgia::Role.pluck(:name, :id).map{|name, id| [name.titleize, id]}
    end

  end
end
Add georgia_roles_collection for users form
Add georgia_roles_collection for users form
