Permalink
Browse files

Rails 4 has asset pipeline too

  • Loading branch information...
1 parent ba055cc commit e8f60bbbc6b6a2de65f2b3d10efcbe00664de889 @twalpole twalpole committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/generators/formtastic/install/install_generator.rb
@@ -12,8 +12,8 @@ class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../../../templates', __FILE__)
class_option :template_engine
- if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1
- # Rails 3.1 has the asset pipeline, no need to copy CSS files any more
+ if ::Rails::VERSION::MAJOR==4 || (::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1)
+ # Rails 3.1+ has the asset pipeline, no need to copy CSS files any more
desc "Copies a config initializer to config/initializers/formtastic.rb"
def copy_files
copy_file 'formtastic.rb', 'config/initializers/formtastic.rb'

0 comments on commit e8f60bb

Please sign in to comment.