Skip to content

Commit

Permalink
fix retro_blog for newer version of external lib
Browse files Browse the repository at this point in the history
Since 2010-04-30 acts-as-taggable-on uses namespaces for their
models. This patch is needed to run the retro_blog extension with recent
versions of acts-as-taggable-on.

This fixes http://retrospectiva.org/tickets/840
  • Loading branch information
johnyb authored and dim committed Sep 7, 2010
1 parent be25c3b commit fb83752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -22,7 +22,7 @@
# They can then be installed with "rake gems:install" on new installations.
config.gem 'rack', :lib => 'rack', :version => '~> 1.0.0'
config.gem 'will_paginate', :lib => 'will_paginate', :version => '>= 2.3.8'
config.gem 'acts-as-taggable-on', :lib => 'acts-as-taggable-on', :version => '>= 1.0.3'
config.gem 'acts-as-taggable-on', :lib => 'acts-as-taggable-on', :version => '>= 2.0.4'
config.gem 'RedCloth', :lib => 'redcloth', :version => '>= 4.1.9'

# Only load the plugins named here, in the order given. By default, all plugins
Expand Down
4 changes: 2 additions & 2 deletions extensions/retro_blog/ext/project.rb
Expand Up @@ -7,9 +7,9 @@

def categories
records = find :all,
:select => "DISTINCT #{Tag.quoted_table_name}.name",
:select => "DISTINCT #{ActsAsTaggableOn::Tag.quoted_table_name}.name",
:joins => :categories,
:order => "#{Tag.quoted_table_name}.name"
:order => "#{ActsAsTaggableOn::Tag.quoted_table_name}.name"
records.map(&:name)
end

Expand Down

0 comments on commit fb83752

Please sign in to comment.