Sha256: 8c2a1626ca976128d7fcb138d97bd3cfee87e2cd491f7ec13446f9a2783599e7

Contents?: true

Size: 635 Bytes

Versions: 5

Compression:

Stored size: 635 Bytes

Contents

class ClientLogin::ProjectsController < ClientLogin::BaseController
  include ControllerMixins::Authorization

  before_filter :load_project, :only => [:show]
  before_filter :load_file_attachments, :only => [:show]

  authorize_owners_with_client_show(:project)

  # GET /projects/:id
  def show
    @tickets = Ticket.for_project(@project).sort_by_name
    # FIXME - not showing correct group of work_units
    @work_units = Project.find(params[:id]).work_units
  end

  private
  def load_project
    @project = Project.find(params[:id])
  end

  def load_file_attachments
    @file_attachments = @project.file_attachments
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xrono-1.0.4 app/controllers/client_login/projects_controller.rb
xrono-1.0.3 app/controllers/client_login/projects_controller.rb
xrono-1.0.2 app/controllers/client_login/projects_controller.rb
xrono-1.0.1 app/controllers/client_login/projects_controller.rb
xrono-1.0.0 app/controllers/client_login/projects_controller.rb