diff --git a/app/controllers/note_files_controller.rb b/app/controllers/note_files_controller.rb index 6a1e99b..27f5819 100644 --- a/app/controllers/note_files_controller.rb +++ b/app/controllers/note_files_controller.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class NoteFilesController < ApplicationController # GET /note_files # GET /note_files.json diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 4c5f7d9..053243b 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class NotesController < ApplicationController def show diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index 201e990..9f6639d 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class TopicsController < ApplicationController before_filter :authenticate_admin! layout "topics" diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..24a9642 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,3 @@ +# -*- encoding : utf-8 -*- module ApplicationHelper end diff --git a/app/helpers/document_line_helper.rb b/app/helpers/document_line_helper.rb index 715239c..9c449f2 100644 --- a/app/helpers/document_line_helper.rb +++ b/app/helpers/document_line_helper.rb @@ -14,4 +14,4 @@ module DocumentLineHelper link_to_function(name, "alert('test');add_fields(this, \"#{association}\", \"#{escape_javascript(fields)}\");") end -end \ No newline at end of file +end diff --git a/app/helpers/markdown_helper.rb b/app/helpers/markdown_helper.rb index 42076e7..09a24b2 100644 --- a/app/helpers/markdown_helper.rb +++ b/app/helpers/markdown_helper.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- module MarkdownHelper def markdown(text) @@ -28,4 +29,4 @@ module MarkdownHelper end -end \ No newline at end of file +end diff --git a/app/helpers/surveys_helper.rb b/app/helpers/surveys_helper.rb index 84524bb..1a6d485 100644 --- a/app/helpers/surveys_helper.rb +++ b/app/helpers/surveys_helper.rb @@ -1,2 +1,3 @@ +# -*- encoding : utf-8 -*- module SurveysHelper end diff --git a/app/helpers/tiny_urls_helper.rb b/app/helpers/tiny_urls_helper.rb index 5078cfa..b37ca74 100644 --- a/app/helpers/tiny_urls_helper.rb +++ b/app/helpers/tiny_urls_helper.rb @@ -1,2 +1,3 @@ +# -*- encoding : utf-8 -*- module TinyUrlsHelper end diff --git a/app/models/admin.rb b/app/models/admin.rb index 5876327..9d84296 100644 --- a/app/models/admin.rb +++ b/app/models/admin.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Admin < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, diff --git a/app/models/donate.rb b/app/models/donate.rb index ea2f274..de8d684 100644 --- a/app/models/donate.rb +++ b/app/models/donate.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Donate < ActiveRecord::Base belongs_to :sheet diff --git a/app/models/newsgroup.rb b/app/models/newsgroup.rb index 4186592..c8553a4 100644 --- a/app/models/newsgroup.rb +++ b/app/models/newsgroup.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Newsgroup < ActiveRecord::Base has_many :people_newsgroups has_many :people, :through => :people_newsgroups diff --git a/app/models/note.rb b/app/models/note.rb index 33d790d..707ae53 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Note < ActiveRecord::Base belongs_to :admin belongs_to :topic diff --git a/app/models/note_file.rb b/app/models/note_file.rb index 23c7766..e02bcb6 100644 --- a/app/models/note_file.rb +++ b/app/models/note_file.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class NoteFile < ActiveRecord::Base attr_accessor :file_cache, :original_filename diff --git a/app/models/people_newsgroup.rb b/app/models/people_newsgroup.rb index fa18ddd..2cfc716 100644 --- a/app/models/people_newsgroup.rb +++ b/app/models/people_newsgroup.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class PeopleNewsgroup < ActiveRecord::Base belongs_to :person belongs_to :newsgroup diff --git a/app/models/person.rb b/app/models/person.rb index 7d1e6cc..70c8f80 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Person < ActiveRecord::Base belongs_to :sheet #validates_presence_of :surname, :firstname diff --git a/app/models/question_set.rb b/app/models/question_set.rb index 963306a..9d4042b 100644 --- a/app/models/question_set.rb +++ b/app/models/question_set.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class QuestionSet < ActiveRecord::Base belongs_to :survey_item belongs_to :survey_set diff --git a/app/models/survey_item.rb b/app/models/survey_item.rb index b1bcc49..f24a378 100644 --- a/app/models/survey_item.rb +++ b/app/models/survey_item.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class SurveyItem < ActiveRecord::Base belongs_to :survey_type attr_accessible :description, :display_type, :help, :item_type, :questions_type, :string_type, :title, :archived, :locked, :text_presentation, :max_checkboxes diff --git a/app/models/survey_item_answer.rb b/app/models/survey_item_answer.rb index ad8de55..f4c509a 100644 --- a/app/models/survey_item_answer.rb +++ b/app/models/survey_item_answer.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class SurveyItemAnswer < ActiveRecord::Base belongs_to :survey_item attr_accessible :class_text, :data_type, :field_type, :help_text, :label_text, :archived, :locked diff --git a/app/models/survey_set.rb b/app/models/survey_set.rb index 1add41b..0e237fa 100644 --- a/app/models/survey_set.rb +++ b/app/models/survey_set.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class SurveySet < ActiveRecord::Base belongs_to :survey_type has_many :question_sets diff --git a/app/models/survey_type.rb b/app/models/survey_type.rb index 4b41da0..3ffb835 100644 --- a/app/models/survey_type.rb +++ b/app/models/survey_type.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class SurveyType < ActiveRecord::Base attr_accessible :description, :intro_text, :name, :thank_text, :locked, :archived, :slug diff --git a/app/models/tiny_url.rb b/app/models/tiny_url.rb index 25e71c0..0072c7e 100644 --- a/app/models/tiny_url.rb +++ b/app/models/tiny_url.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class TinyUrl < ActiveRecord::Base attr_accessible :nbr_views, :slug, :start_at, :stop_at, :url end diff --git a/app/models/topic.rb b/app/models/topic.rb index e6f0791..04d1885 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Topic < ActiveRecord::Base belongs_to :admin attr_accessible :description, :title diff --git a/app/models/year_paiement.rb b/app/models/year_paiement.rb index 022206b..53fe553 100644 --- a/app/models/year_paiement.rb +++ b/app/models/year_paiement.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class YearPaiement < ActiveRecord::Base belongs_to :join_year diff --git a/config/application.rb b/config/application.rb index 160331e..580b031 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require File.expand_path('../boot', __FILE__) require 'rails/all' diff --git a/config/boot.rb b/config/boot.rb index 4489e58..f488c9a 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'rubygems' # Set up gems listed in the Gemfile. diff --git a/config/deploy.rb b/config/deploy.rb index 4161bd1..97a8e5b 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- set :application, 'pic_vert_app' set :domain, 'www2.lepicvert.asso.fr' @@ -108,4 +109,4 @@ set :application, 'pic_vert_app' end - \ No newline at end of file + diff --git a/config/environment.rb b/config/environment.rb index cc35823..ca3244f 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Load the rails application require File.expand_path('../application', __FILE__) diff --git a/config/environments/development.rb b/config/environments/development.rb index b880a3c..7b4b22f 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- HOSTNAME = 'localhost:3000' Survey::Application.configure do diff --git a/config/environments/production.rb b/config/environments/production.rb index 60a541f..8390600 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- HOSTNAME = 'http://lepicvert.org' Survey::Application.configure do diff --git a/config/environments/test.rb b/config/environments/test.rb index c43811f..126fd16 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- Survey::Application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index 59385cd..b5e9a55 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index cab0dc3..aef2298 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| @@ -234,4 +235,4 @@ Devise.setup do |config| config.case_insensitive_keys = [ :username ] config.strip_whitespace_keys = [ :username ] -end \ No newline at end of file +end diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 5d8d9be..755e48b 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 72aca7e..9070e0c 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 5a90d53..6763d01 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index e16a859..d690583 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. Survey::Application.config.session_store :cookie_store, key: '_survey_session' diff --git a/config/initializers/to_slug.rb b/config/initializers/to_slug.rb index 9d119ea..aae8786 100644 --- a/config/initializers/to_slug.rb +++ b/config/initializers/to_slug.rb @@ -40,4 +40,4 @@ module ToSlug end end -String.send(:include, ToSlug) \ No newline at end of file +String.send(:include, ToSlug) diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb index 999df20..07135d6 100644 --- a/config/initializers/wrap_parameters.rb +++ b/config/initializers/wrap_parameters.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # # This file contains settings for ActionController::ParamsWrapper which diff --git a/config/routes.rb b/config/routes.rb index 41ed605..0fbbacc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- Survey::Application.routes.draw do diff --git a/config/unicorn.rb b/config/unicorn.rb index 2a6bcac..c8c4e8f 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- @rails_app = "pic_vert_app" working_directory "/home/web/#{@rails_app}/current" @@ -7,4 +8,4 @@ stdout_path "/home/web/#{@rails_app}/shared/log/unicorn.log" listen "/home/web/#{@rails_app}/shared/tmp/unicorn.sock" worker_processes 2 -timeout 30 \ No newline at end of file +timeout 30 diff --git a/db/migrate/20091216195525_create_newsgroups.rb b/db/migrate/20091216195525_create_newsgroups.rb index 0205a3d..0fef868 100644 --- a/db/migrate/20091216195525_create_newsgroups.rb +++ b/db/migrate/20091216195525_create_newsgroups.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateNewsgroups < ActiveRecord::Migration def self.up create_table :newsgroups do |t| diff --git a/db/migrate/20100823180657_create_sheets.rb b/db/migrate/20100823180657_create_sheets.rb index 9d354aa..4ac72d7 100644 --- a/db/migrate/20100823180657_create_sheets.rb +++ b/db/migrate/20100823180657_create_sheets.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSheets < ActiveRecord::Migration def self.up create_table :sheets do |t| diff --git a/db/migrate/20100826110736_create_people.rb b/db/migrate/20100826110736_create_people.rb index d96848c..351b6fd 100644 --- a/db/migrate/20100826110736_create_people.rb +++ b/db/migrate/20100826110736_create_people.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreatePeople < ActiveRecord::Migration def self.up create_table :people do |t| diff --git a/db/migrate/20100826123355_create_sheet_years.rb b/db/migrate/20100826123355_create_sheet_years.rb index 94c10ee..3477f45 100644 --- a/db/migrate/20100826123355_create_sheet_years.rb +++ b/db/migrate/20100826123355_create_sheet_years.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSheetYears < ActiveRecord::Migration def self.up create_table :sheet_years do |t| diff --git a/db/migrate/20100826141937_create_donates.rb b/db/migrate/20100826141937_create_donates.rb index 23a09b2..e99780a 100644 --- a/db/migrate/20100826141937_create_donates.rb +++ b/db/migrate/20100826141937_create_donates.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateDonates < ActiveRecord::Migration def self.up create_table :donates do |t| diff --git a/db/migrate/20100830105536_create_people_newsgroups.rb b/db/migrate/20100830105536_create_people_newsgroups.rb index 3a20d53..869c076 100644 --- a/db/migrate/20100830105536_create_people_newsgroups.rb +++ b/db/migrate/20100830105536_create_people_newsgroups.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreatePeopleNewsgroups < ActiveRecord::Migration def self.up create_table :people_newsgroups do |t| diff --git a/db/migrate/20120816090713_create_survey_types.rb b/db/migrate/20120816090713_create_survey_types.rb index 478d518..baf591f 100644 --- a/db/migrate/20120816090713_create_survey_types.rb +++ b/db/migrate/20120816090713_create_survey_types.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSurveyTypes < ActiveRecord::Migration def change create_table :survey_types do |t| diff --git a/db/migrate/20120816090843_create_survey_items.rb b/db/migrate/20120816090843_create_survey_items.rb index 18d06f2..215abd8 100644 --- a/db/migrate/20120816090843_create_survey_items.rb +++ b/db/migrate/20120816090843_create_survey_items.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSurveyItems < ActiveRecord::Migration def change create_table :survey_items do |t| diff --git a/db/migrate/20120816091025_create_survey_item_answers.rb b/db/migrate/20120816091025_create_survey_item_answers.rb index 835afee..46ad0f2 100644 --- a/db/migrate/20120816091025_create_survey_item_answers.rb +++ b/db/migrate/20120816091025_create_survey_item_answers.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSurveyItemAnswers < ActiveRecord::Migration def change create_table :survey_item_answers do |t| diff --git a/db/migrate/20120816091659_create_survey_sets.rb b/db/migrate/20120816091659_create_survey_sets.rb index 2509da3..ea62619 100644 --- a/db/migrate/20120816091659_create_survey_sets.rb +++ b/db/migrate/20120816091659_create_survey_sets.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateSurveySets < ActiveRecord::Migration def change create_table :survey_sets do |t| diff --git a/db/migrate/20120816091759_create_question_sets.rb b/db/migrate/20120816091759_create_question_sets.rb index 0ddce2c..4726d87 100644 --- a/db/migrate/20120816091759_create_question_sets.rb +++ b/db/migrate/20120816091759_create_question_sets.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateQuestionSets < ActiveRecord::Migration def change create_table :question_sets do |t| diff --git a/db/migrate/20120816091837_create_answer_sets.rb b/db/migrate/20120816091837_create_answer_sets.rb index b248d1e..439025b 100644 --- a/db/migrate/20120816091837_create_answer_sets.rb +++ b/db/migrate/20120816091837_create_answer_sets.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateAnswerSets < ActiveRecord::Migration def change create_table :answer_sets do |t| diff --git a/db/migrate/20120819102731_change_data_type_for_table_column.rb b/db/migrate/20120819102731_change_data_type_for_table_column.rb index b062da5..44cde2f 100644 --- a/db/migrate/20120819102731_change_data_type_for_table_column.rb +++ b/db/migrate/20120819102731_change_data_type_for_table_column.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class ChangeDataTypeForTableColumn < ActiveRecord::Migration def up change_column :question_sets, :content, :text diff --git a/db/migrate/20120820162850_create_tiny_urls.rb b/db/migrate/20120820162850_create_tiny_urls.rb index 144a890..9e5b75f 100644 --- a/db/migrate/20120820162850_create_tiny_urls.rb +++ b/db/migrate/20120820162850_create_tiny_urls.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateTinyUrls < ActiveRecord::Migration def change create_table :tiny_urls do |t| diff --git a/db/migrate/20120912064654_create_topics.rb b/db/migrate/20120912064654_create_topics.rb index 9b45644..2e32809 100644 --- a/db/migrate/20120912064654_create_topics.rb +++ b/db/migrate/20120912064654_create_topics.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateTopics < ActiveRecord::Migration def change create_table :topics do |t| diff --git a/db/migrate/20120912064754_create_notes.rb b/db/migrate/20120912064754_create_notes.rb index 8edb3d6..1709822 100644 --- a/db/migrate/20120912064754_create_notes.rb +++ b/db/migrate/20120912064754_create_notes.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateNotes < ActiveRecord::Migration def change create_table :notes do |t| diff --git a/db/migrate/20120912065146_create_note_files.rb b/db/migrate/20120912065146_create_note_files.rb index 5db41eb..932d371 100644 --- a/db/migrate/20120912065146_create_note_files.rb +++ b/db/migrate/20120912065146_create_note_files.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class CreateNoteFiles < ActiveRecord::Migration def change create_table :note_files do |t| diff --git a/db/migrate/20121202213450_devise_create_admins.rb b/db/migrate/20121202213450_devise_create_admins.rb index 3dca553..1174c02 100644 --- a/db/migrate/20121202213450_devise_create_admins.rb +++ b/db/migrate/20121202213450_devise_create_admins.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class DeviseCreateAdmins < ActiveRecord::Migration def change create_table(:admins) do |t| diff --git a/db/migrate/20121202213542_add_username_to_admins.rb b/db/migrate/20121202213542_add_username_to_admins.rb index d5637cc..fe6f612 100644 --- a/db/migrate/20121202213542_add_username_to_admins.rb +++ b/db/migrate/20121202213542_add_username_to_admins.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class AddUsernameToAdmins < ActiveRecord::Migration def change add_column :admins, :username, :string diff --git a/db/schema.rb b/db/schema.rb index b82dc30..1e45f25 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,4 +1,4 @@ -# encoding: UTF-8 +# -*- encoding : utf-8 -*- # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. diff --git a/db/seeds.rb b/db/seeds.rb index 79ee959..89444c0 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -80,4 +80,4 @@ item = @survey.items.build(:questions_type => 2, :text_presentation => 2, :title @survey_set = @survey.to_survey_set -Admin.create(:username => "nico", :password => 123456, :password_confirmation => 123456, :email => "info@nicolasbally.com") \ No newline at end of file +Admin.create(:username => "nico", :password => 123456, :password_confirmation => 123456, :email => "info@nicolasbally.com") diff --git a/sheet.rb b/sheet.rb index 4fb50aa..1060570 100644 --- a/sheet.rb +++ b/sheet.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class Sheet < ActiveRecord::Base has_many :people, :dependent => :destroy has_many :sheet_years, :order => "year DESC", :dependent => :destroy diff --git a/sheet_year.rb b/sheet_year.rb index b16d4fb..3b3365c 100644 --- a/sheet_year.rb +++ b/sheet_year.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- class SheetYear < ActiveRecord::Base belongs_to :sheet diff --git a/test/functional/surveys_controller_test.rb b/test/functional/surveys_controller_test.rb index 2aaad93..f2dafca 100644 --- a/test/functional/surveys_controller_test.rb +++ b/test/functional/surveys_controller_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveysControllerTest < ActionController::TestCase diff --git a/test/functional/tiny_urls_controller_test.rb b/test/functional/tiny_urls_controller_test.rb index 7ca340b..61b8194 100644 --- a/test/functional/tiny_urls_controller_test.rb +++ b/test/functional/tiny_urls_controller_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class TinyUrlsControllerTest < ActionController::TestCase diff --git a/test/performance/browsing_test.rb b/test/performance/browsing_test.rb index 3fea27b..0fc9ead 100644 --- a/test/performance/browsing_test.rb +++ b/test/performance/browsing_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' require 'rails/performance_test_help' diff --git a/test/test_helper.rb b/test/test_helper.rb index 8bf1192..e6e4934 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' diff --git a/test/unit/admin_test.rb b/test/unit/admin_test.rb index ab20b8c..c747608 100644 --- a/test/unit/admin_test.rb +++ b/test/unit/admin_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class AdminTest < ActiveSupport::TestCase diff --git a/test/unit/answer_set_test.rb b/test/unit/answer_set_test.rb index 558eec2..f96a100 100644 --- a/test/unit/answer_set_test.rb +++ b/test/unit/answer_set_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class AnswerSetTest < ActiveSupport::TestCase diff --git a/test/unit/helpers/surveys_helper_test.rb b/test/unit/helpers/surveys_helper_test.rb index bb32978..2120158 100644 --- a/test/unit/helpers/surveys_helper_test.rb +++ b/test/unit/helpers/surveys_helper_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveysHelperTest < ActionView::TestCase diff --git a/test/unit/helpers/tiny_urls_helper_test.rb b/test/unit/helpers/tiny_urls_helper_test.rb index d378877..f83e1e2 100644 --- a/test/unit/helpers/tiny_urls_helper_test.rb +++ b/test/unit/helpers/tiny_urls_helper_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class TinyUrlsHelperTest < ActionView::TestCase diff --git a/test/unit/question_set_test.rb b/test/unit/question_set_test.rb index 5880142..f67ebe6 100644 --- a/test/unit/question_set_test.rb +++ b/test/unit/question_set_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class QuestionSetTest < ActiveSupport::TestCase diff --git a/test/unit/survey_item_answer_test.rb b/test/unit/survey_item_answer_test.rb index 1a90895..2ad5b8b 100644 --- a/test/unit/survey_item_answer_test.rb +++ b/test/unit/survey_item_answer_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveyItemAnswerTest < ActiveSupport::TestCase diff --git a/test/unit/survey_item_test.rb b/test/unit/survey_item_test.rb index 78f70ca..3a47956 100644 --- a/test/unit/survey_item_test.rb +++ b/test/unit/survey_item_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveyItemTest < ActiveSupport::TestCase diff --git a/test/unit/survey_set_test.rb b/test/unit/survey_set_test.rb index 95fbfe0..a45c216 100644 --- a/test/unit/survey_set_test.rb +++ b/test/unit/survey_set_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveySetTest < ActiveSupport::TestCase diff --git a/test/unit/survey_type_test.rb b/test/unit/survey_type_test.rb index 3b98a5a..55e82d3 100644 --- a/test/unit/survey_type_test.rb +++ b/test/unit/survey_type_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class SurveyTypeTest < ActiveSupport::TestCase diff --git a/test/unit/tiny_url_test.rb b/test/unit/tiny_url_test.rb index f01c7f1..9332bd2 100644 --- a/test/unit/tiny_url_test.rb +++ b/test/unit/tiny_url_test.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- require 'test_helper' class TinyUrlTest < ActiveSupport::TestCase