diff options
author | Gareth Rees <gareth@garethrees.co.uk> | 2017-01-19 11:37:48 +0000 |
---|---|---|
committer | Gareth Rees <gareth@garethrees.co.uk> | 2017-01-19 11:37:48 +0000 |
commit | 64f2f360ec9c27aa9c7545d8ab4678c0af3eaa6c (patch) | |
tree | 301c5bf19b6063de21163a572ea4f949c09c67dc /lib | |
parent | b90f36f350f59b93e5bb59aeb4868205579b0ab9 (diff) |
Add encoding line to Ruby files
Fixes https://github.com/mysociety/alavetelitheme/issues/69.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/alavetelitheme.rb | 1 | ||||
-rw-r--r-- | lib/config/custom-routes.rb | 1 | ||||
-rw-r--r-- | lib/controller_patches.rb | 1 | ||||
-rw-r--r-- | lib/customstates.rb | 1 | ||||
-rw-r--r-- | lib/model_patches.rb | 1 | ||||
-rw-r--r-- | lib/patch_mailer_paths.rb | 1 | ||||
-rw-r--r-- | lib/tasks/alavetelitheme_tasks.rake | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index c245617..668d92a 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- theme_name = File.split(File.expand_path("../..", __FILE__))[1] theme_name.gsub!('-', '_') THEME_NAME = theme_name diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb index 6d4cda4..98fccf7 100644 --- a/lib/config/custom-routes.rb +++ b/lib/config/custom-routes.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Here you can override or add to the pages in the core website Rails.application.routes.draw do diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb index 5c48e70..6d796b0 100644 --- a/lib/controller_patches.rb +++ b/lib/controller_patches.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # Doing so in init/environment.rb wouldn't work in development, since diff --git a/lib/customstates.rb b/lib/customstates.rb index d801c92..323a105 100644 --- a/lib/customstates.rb +++ b/lib/customstates.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # See `http://alaveteli.org/docs/customising/themes/#customising-the-request-states` # for more explanation of this file diff --git a/lib/model_patches.rb b/lib/model_patches.rb index b0c906f..d223e36 100644 --- a/lib/model_patches.rb +++ b/lib/model_patches.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # Doing so in init/environment.rb wouldn't work in development, since diff --git a/lib/patch_mailer_paths.rb b/lib/patch_mailer_paths.rb index 99da10a..4533be0 100644 --- a/lib/patch_mailer_paths.rb +++ b/lib/patch_mailer_paths.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode diff --git a/lib/tasks/alavetelitheme_tasks.rake b/lib/tasks/alavetelitheme_tasks.rake index 1f1925b..3744d04 100644 --- a/lib/tasks/alavetelitheme_tasks.rake +++ b/lib/tasks/alavetelitheme_tasks.rake @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # desc "Explaining what the task does" # task :alavetelitheme do # # Task goes here |