beef-articles 0.3.5 → 0.3.6

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -30,7 +30,7 @@ class Admin::CategoriesController < Admin::BaseController
30
30
  @category = Category.new
31
31
 
32
32
  respond_to do |format|
33
- format.html { render :action =>'show' }
33
+ format.html { render :action => "show" }
34
34
  format.xml { render :xml => @category }
35
35
  end
36
36
  end
@@ -46,7 +46,7 @@ class Admin::CategoriesController < Admin::BaseController
46
46
  format.html { redirect_to(admin_categories_url) }
47
47
  format.xml { render :xml => @category, :status => :created, :location => @category }
48
48
  else
49
- format.html { render :action => "new" }
49
+ format.html { render :action => "show" }
50
50
  format.xml { render :xml => @category.errors, :status => :unprocessable_entity }
51
51
  end
52
52
  end
@@ -63,7 +63,7 @@ class Admin::CategoriesController < Admin::BaseController
63
63
  format.html { redirect_to(admin_categories_url) }
64
64
  format.xml { head :ok }
65
65
  else
66
- format.html { render :action => "edit" }
66
+ format.html { render :action => "show" }
67
67
  format.xml { render :xml => @category.errors, :status => :unprocessable_entity }
68
68
  end
69
69
  end
@@ -17,7 +17,7 @@ class CommentsController < ApplicationController
17
17
  :comment_author_email => @comment.email,
18
18
  :user_logged_in => logged_in?,
19
19
  :referrer => request.referer,
20
- :permalink => permalink( @commentable ))
20
+ :permalink => @commentable )
21
21
 
22
22
 
23
23
  logger.info "VIKING RESPONSE: #{viking_response.inspect}"
data/articles.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{articles}
5
- s.version = "0.3.5"
5
+ s.version = "0.3.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steve England"]
9
- s.date = %q{2009-07-29}
9
+ s.date = %q{2009-08-04}
10
10
  s.email = %q{steve@wearebeef.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
data/lib/articles.rb CHANGED
@@ -1,11 +1,13 @@
1
1
  module Beef
2
2
  module Articles
3
- def article_path(article, options = {})
4
- article_permalink_path(article.published_at.year,article.published_at.month,article.published_at.day,article.permalink,options)
5
- end
3
+ module UrlHelper
4
+ def article_path(article, options = {})
5
+ article_permalink_path(article.published_at.year,article.published_at.month,article.published_at.day,article.permalink,options)
6
+ end
6
7
 
7
- def article_url(article, options = {})
8
- article_path(article, options.merge(:only_path => false))
8
+ def article_url(article, options = {})
9
+ article_path(article, options.merge(:only_path => false))
10
+ end
9
11
  end
10
12
  end
11
13
  end
data/rails/init.rb CHANGED
@@ -5,7 +5,7 @@ require "articles"
5
5
  config.to_prepare do
6
6
  ApplicationController.helper(ArticlesHelper)
7
7
  ApplicationController.helper(CommentsHelper)
8
- ApplicationController.helper(Beef::Articles)
8
+ ApplicationController.helper(Beef::Articles::UrlHelper)
9
9
  end
10
10
 
11
- ActionController::Base.send :include, Beef::Articles
11
+ ActionController::Base.send :include, Beef::Articles::UrlHelper
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-articles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-29 00:00:00 -07:00
12
+ date: 2009-08-04 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency