Skip to content

Commit

Permalink
utf-8 magic comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
jana4u committed May 9, 2012
1 parent ba51fa8 commit a11e984
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/app.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CraftCalculator < Padrino::Application
register Padrino::Rendering
register Padrino::Helpers
Expand Down
1 change: 1 addition & 0 deletions app/controllers.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
CraftCalculator.controllers do
include IntegerExtractor

Expand Down
2 changes: 1 addition & 1 deletion app/helpers.rb
@@ -1,4 +1,4 @@
# encoding: UTF-8
# -*- encoding : utf-8 -*-

# Helper methods defined here can be accessed in any controller or view in the application

Expand Down
1 change: 1 addition & 0 deletions config/apps.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
##
# This file mounts each app in the Padrino project to a specified sub-uri.
# You can mount additional applications using any of these commands below:
Expand Down
1 change: 1 addition & 0 deletions config/boot.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Defines our constants
PADRINO_ENV = ENV["PADRINO_ENV"] ||= ENV["RACK_ENV"] ||= "development" unless defined?(PADRINO_ENV)
PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)
Expand Down
1 change: 1 addition & 0 deletions lib/cycle_helper.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# extracted from: actionpack-3.1.3/lib/action_view/helpers/text_helper.rb

module CycleHelper
Expand Down
1 change: 1 addition & 0 deletions lib/integer_extractor.rb
@@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module IntegerExtractor
def non_negative_integer_from_string(string)
string.gsub(/[^0-9]/, "").to_i
Expand Down

0 comments on commit a11e984

Please sign in to comment.