Sha256: 783f61fe626679baf6aac3710dedfe8c92efa872e1798ee25d16ee79d96cd924

Contents?: true

Size: 413 Bytes

Versions: 13

Compression:

Stored size: 413 Bytes

Contents

class Workflow::User::ProjectsController < ApplicationController
  def show
    @project = Project.friendly.find(params[:id])
    
    product = if @project.product 
      @project.product
    else
      value = ::Product.new
      value.id = 'no-name'
      value
    end
    
    @stories = product.stories_for_user(current_user).
    where(project_id: @project.try(:id)).paginate(page: params[:page])
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
voluntary-0.7.1 app/controllers/workflow/user/projects_controller.rb
voluntary-0.7.0 app/controllers/workflow/user/projects_controller.rb
voluntary-0.6.0 app/controllers/workflow/user/projects_controller.rb
voluntary-0.5.2 app/controllers/workflow/user/projects_controller.rb
voluntary-0.5.1 app/controllers/workflow/user/projects_controller.rb
voluntary-0.5.0 app/controllers/workflow/user/projects_controller.rb
voluntary-0.4.0 app/controllers/workflow/user/projects_controller.rb
voluntary-0.3.0 app/controllers/workflow/user/projects_controller.rb
voluntary-0.2.4 app/controllers/workflow/user/projects_controller.rb
voluntary-0.2.3 app/controllers/workflow/user/projects_controller.rb
voluntary-0.2.2 app/controllers/workflow/user/projects_controller.rb
voluntary-0.2.1 app/controllers/workflow/user/projects_controller.rb
voluntary-0.2.0 app/controllers/workflow/user/projects_controller.rb