Sha256: eebceb3dcff31743946728d6bbc48e50821115aa1e7e53eeb64cdea4502e6983

Contents?: true

Size: 407 Bytes

Versions: 10

Compression:

Stored size: 407 Bytes

Contents

class Brightcontent::CommentsController < Brightcontent::BaseController
  def blog
    Blog.find(params[:blog_id])
  end

  def base_collection
    blog.comments
  end

  def resource_path(res = resource)
    [brightcontent, blog, res]
  end

  def resource_index_path
    [brightcontent, blog, resource_class]
  end

  def resource_edit_path(res = resource)
    [brightcontent, :edit, blog, res]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.5.1 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.5.0 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.6 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.5 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.4 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.3 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.2 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.1 spec/dummy/app/controllers/brightcontent/comments_controller.rb
brightcontent-core-2.4.0 spec/dummy/app/controllers/brightcontent/comments_controller.rb