Sha256: 97532979d3cb9d40495525003cc590fb8af89ff0eb6fe59a73514f8bdb47dc53

Contents?: true

Size: 326 Bytes

Versions: 32

Compression:

Stored size: 326 Bytes

Contents

class Blog::CategoriesController < Blog::MainController
  def show
    data = BlogpostParser.fetch_all.select { |b| b['published'] && !b['outdated'] }
    attributes = CategoryParser.fetch_category(params[:slug])

    @category_with_all_blogposts = Blog::Category.new(attributes).build_n_blogposts_by_category(data)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
station-0.5.2 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.5.1 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.5.0 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.9 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.8 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.7 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.6 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.5 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.4 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.3 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.2 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.1 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.4.0 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.3.2 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.3.1 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.3.0 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.2.6 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.2.5 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.2.4 lib/nexmo_developer/app/controllers/blog/categories_controller.rb
station-0.2.3 lib/nexmo_developer/app/controllers/blog/categories_controller.rb