Permalink
Browse files

Fixing build failures

Build failed with an error "invalid multibyte char (US-ASCII)" in these
files. Apparently, some UTF-8 char disguised as whitespace causes this.

Thanks @rafaelfranca
  • Loading branch information...
1 parent 2441160 commit e40f515a75a67f49ca70a6ea8f0a7d5d7ae1bfea @vijaydev vijaydev committed Oct 10, 2012
@@ -1,7 +1,7 @@
require 'rails/generators/named_base'
-module Erb # :nodoc:
- module Generators # :nodoc:
+module Erb # :nodoc:
+ module Generators # :nodoc:
class Base < Rails::Generators::NamedBase #:nodoc:
protected
@@ -1,8 +1,8 @@
require 'rails/generators/erb'
-module Erb # :nodoc:
- module Generators # :nodoc:
- class ControllerGenerator < Base # :nodoc:
+module Erb # :nodoc:
+ module Generators # :nodoc:
+ class ControllerGenerator < Base # :nodoc:
argument :actions, :type => :array, :default => [], :banner => "action action"
def copy_view_files
@@ -1,8 +1,8 @@
require 'rails/generators/erb/controller/controller_generator'
-module Erb # :nodoc:
- module Generators # :nodoc:
- class MailerGenerator < ControllerGenerator # :nodoc:
+module Erb # :nodoc:
+ module Generators # :nodoc:
+ class MailerGenerator < ControllerGenerator # :nodoc:
protected
def format
@@ -1,9 +1,9 @@
require 'rails/generators/erb'
require 'rails/generators/resource_helpers'
-module Erb # :nodoc:
- module Generators # :nodoc:
- class ScaffoldGenerator < Base # :nodoc:
+module Erb # :nodoc:
+ module Generators # :nodoc:
+ class ScaffoldGenerator < Base # :nodoc:
include Rails::Generators::ResourceHelpers
argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
@@ -1,8 +1,8 @@
require "rails/generators/named_base"
module Js # :nodoc:
- module Generators # :nodoc:
- class AssetsGenerator < Rails::Generators::NamedBase # :nodoc:
+ module Generators # :nodoc:
+ class AssetsGenerator < Rails::Generators::NamedBase # :nodoc:
source_root File.expand_path("../templates", __FILE__)
def copy_javascript
@@ -1,6 +1,6 @@
module Rails
module Generators
- class HelperGenerator < NamedBase # :nodoc:
+ class HelperGenerator < NamedBase # :nodoc:
check_class_collision :suffix => "Helper"
def create_helper_files

0 comments on commit e40f515

Please sign in to comment.