tb_blog 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75d08014c6bfae23f36194966d8c44c90b2bf360
4
- data.tar.gz: 9d671ef8e92119816d1e763c76c075f3f7e8355d
3
+ metadata.gz: d37118df81124d692e43579653d429c6883524ab
4
+ data.tar.gz: 938676e0188d55596ffdab542cfa8483758396a3
5
5
  SHA512:
6
- metadata.gz: 034db71980235a49973be16e66a5041275accebe67aae1217251aca2904462670258902a5ae439ad81c53df5ccef212960ed1e12e980300cb582545bc1c0676f
7
- data.tar.gz: 474aeaf3a4a457368cfb19092d9d2273df82da6b71d141f2f5dd540cfa22bbb7b74a63b9c91f942b37c47660f214ab81eca7ede8734723c58118d5f910a63530
6
+ metadata.gz: ec2e038b0c8afa99eca39d2f6cc9f321dc40e03ac288a2420dacd56fad7799ddff54588e84a331d254825d00cdf86e9b10a5a2231daa8a3c69a3cd99ad0a4510
7
+ data.tar.gz: cd14ca581a980ab6538f11ded47eec8a3d5591350e1d422ce4bbb623c94320fb69b08c518b2e206b5b419165ee8d7017259bb99b1d85bceeb0be8490392fadb7
@@ -4,8 +4,6 @@ class Admin::PostCommentsController < Admin::ApplicationController
4
4
  respond_to :html, :xml, :json
5
5
  before_action :load_blog, :only => :index
6
6
  before_action :find_comment, :only => [:show, :edit, :update, :destroy, :approve, :spam]
7
- add_breadcrumb 'Blog Posts', :admin_posts_path
8
- add_breadcrumb 'Comments', :admin_post_comments_path
9
7
 
10
8
  def index
11
9
  @page_name = "Comments"
@@ -68,14 +66,14 @@ private
68
66
  end
69
67
 
70
68
  def load_blog
71
- logger.debug 'load_blog'
72
- key = params[:blog_key]
73
- config = Spud::Blog.config.blogs.find{ |it| it[:key] == key }
74
- if key.blank? || config.blank?
69
+ @config = SpudBlogConfig.find(params[:blog_key])
70
+ if @config.blank?
75
71
  redirect_to admin_root_path
76
72
  return false
77
73
  else
78
- self.class.belongs_to_spud_app config[:name].parameterize.underscore.to_sym
74
+ self.class.belongs_to_spud_app "#{@config.name} Posts".parameterize.underscore.to_sym
75
+ add_breadcrumb "#{@config.name} Posts", admin_posts_path(blog_key: @config.key)
76
+ add_breadcrumb "Comments", admin_post_comments_path(blog_key: @config.key)
79
77
  end
80
78
  end
81
79
 
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tb_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Westlake Design
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails