spud_blog 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,8 +17,7 @@ class Spud::Admin::PostCategoriesController < Spud::Admin::ApplicationController
17
17
 
18
18
  def update
19
19
  if @post_category.update_attributes(params[:spud_post_category])
20
- flash[:notice] = 'Post Category was successfully updated'
21
- expire_post_actions
20
+ flash[:notice] = 'Post Category was successfully updated'
22
21
  respond_with @post_category, :location => spud_admin_post_categories_path
23
22
  else
24
23
  render 'new', :status => 422
@@ -34,7 +33,6 @@ class Spud::Admin::PostCategoriesController < Spud::Admin::ApplicationController
34
33
  @post_category = SpudPostCategory.new(params[:spud_post_category])
35
34
  if @post_category.save
36
35
  flash[:notice] = 'Post Category was successfully created'
37
- expire_post_actions
38
36
  respond_with @post_category, :location => spud_admin_post_categories_path
39
37
  else
40
38
  render 'new', :status => 422
@@ -44,7 +42,6 @@ class Spud::Admin::PostCategoriesController < Spud::Admin::ApplicationController
44
42
  def destroy
45
43
  if @post_category.destroy
46
44
  flash[:notice] = 'Post Category was successfully deleted'
47
- expire_post_actions
48
45
  @post_categories = SpudPostCategory.grouped
49
46
  render 'index'
50
47
  else
@@ -58,9 +55,5 @@ class Spud::Admin::PostCategoriesController < Spud::Admin::ApplicationController
58
55
  @post_category = SpudPostCategory.find(params[:id])
59
56
  end
60
57
 
61
- def expire_post_actions
62
- expire_action news_url if Spud::Blog.config.news_enabled
63
- expire_action blog_url if Spud::Blog.config.blog_enabled
64
- end
65
58
 
66
- end
59
+ end
@@ -38,7 +38,7 @@ module Spud
38
38
  end
39
39
  end
40
40
  initializer :assets do
41
- Rails.application.config.assets.precompile += ['spud/admin/posts.css','spud/blog/validity.css']
41
+ Rails.application.config.assets.precompile += ['spud/admin/posts.*','spud/blog/validity.css']
42
42
  Spud::Core.append_admin_javascripts('spud/admin/posts')
43
43
  Spud::Core.append_admin_stylesheets('spud/admin/posts')
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "0.9.4"
3
+ VERSION = "0.9.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -320,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
320
  version: '0'
321
321
  segments:
322
322
  - 0
323
- hash: -4333841071858548276
323
+ hash: 4047856296351614869
324
324
  required_rubygems_version: !ruby/object:Gem::Requirement
325
325
  none: false
326
326
  requirements:
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  version: '0'
330
330
  segments:
331
331
  - 0
332
- hash: -4333841071858548276
332
+ hash: 4047856296351614869
333
333
  requirements: []
334
334
  rubyforge_project:
335
335
  rubygems_version: 1.8.24