aboutsummaryrefslogtreecommitdiffstats
path: root/generators
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-18 17:01:38 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-18 17:01:38 +1200
commit4fbe3219386f68654ffaf123e30a219b4959de78 (patch)
treed11940b4dc17ed8e238ba7b2cd5c4bb8d96d8576 /generators
parent75b8f120473a4025a47078feb1a208b9e39f1b1b (diff)
downloadrefinerycms-blog-4fbe3219386f68654ffaf123e30a219b4959de78.tar.gz
refinerycms-blog-4fbe3219386f68654ffaf123e30a219b4959de78.tar.bz2
refinerycms-blog-4fbe3219386f68654ffaf123e30a219b4959de78.zip
Fixes the previous string with int comparison fail
Diffstat (limited to 'generators')
-rw-r--r--generators/refinery_blog/refinery_blog_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb
index 137ecab..7bd4454 100644
--- a/generators/refinery_blog/refinery_blog_generator.rb
+++ b/generators/refinery_blog/refinery_blog_generator.rb
@@ -12,7 +12,7 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase
def manifest
record do |m|
- if Rails.version < 3
+ if Rails.version < '3.0.0'
matches = Dir[File.expand_path('../../../public/images/**/*', __FILE__)]
matches.reject{|d| !File.directory?(d)}.each do |dir|
m.directory((%w(public) | dir.split('public/').last.split('/')).join('/'))