diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-09-04 03:20:51 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-09-04 14:35:03 -0700 |
commit | 7903bdfed26f085f6d07d104ac458bc4319b1e32 (patch) | |
tree | fd950e2c1d1d234e0e6a590d24296a4a396798a3 /lib | |
parent | 40be4f71ee425ee55ecedea96ff2b0dc510d71db (diff) | |
download | refinerycms-blog-7903bdfed26f085f6d07d104ac458bc4319b1e32.tar.gz refinerycms-blog-7903bdfed26f085f6d07d104ac458bc4319b1e32.tar.bz2 refinerycms-blog-7903bdfed26f085f6d07d104ac458bc4319b1e32.zip |
refactor factories and add #show tests for posts controller
Do not want to cache classes, but do want to reload models after factory girl:
http://groups.google.com/group/factory_girl/browse_thread/thread/daa24556d90c31fc
http://stackoverflow.com/questions/5145165/associationtypemismatch-and-factorygirl
rails_autolink was removed from Rails 3.1 and abstracted to an external gem
fix display author name and post time on comment show
fix namespace for thanking and moderated flash notices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gemspec.rb | 1 | ||||
-rw-r--r-- | lib/refinery/blog/engine.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/gemspec.rb b/lib/gemspec.rb index df188fe..5508df6 100644 --- a/lib/gemspec.rb +++ b/lib/gemspec.rb @@ -24,6 +24,7 @@ Gem::Specification.new do |s| s.add_dependency 'filters_spam', '~> 0.2' s.add_dependency 'acts-as-taggable-on' s.add_dependency 'seo_meta', '~> 1.2.0.rc1' + s.add_dependency 'rails_autolink' # Development dependencies s.add_development_dependency 'refinerycms-testing', '~> 2.0.0' diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb index ef21472..f67d4ab 100644 --- a/lib/refinery/blog/engine.rb +++ b/lib/refinery/blog/engine.rb @@ -1,6 +1,8 @@ module Refinery module Blog class Engine < Rails::Engine + require 'rails_autolink' + config.to_prepare do require 'refinery/blog/tabs' end |