magick encoding

This commit is contained in:
Nico 2013-01-08 23:28:47 +01:00
parent ad40c4e2ad
commit 9abaa20c91
77 changed files with 81 additions and 8 deletions

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NoteFilesController < ApplicationController class NoteFilesController < ApplicationController
# GET /note_files # GET /note_files
# GET /note_files.json # GET /note_files.json

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NotesController < ApplicationController class NotesController < ApplicationController
def show def show

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TopicsController < ApplicationController class TopicsController < ApplicationController
before_filter :authenticate_admin! before_filter :authenticate_admin!
layout "topics" layout "topics"

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module ApplicationHelper module ApplicationHelper
end end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
module MarkdownHelper module MarkdownHelper
def markdown(text) def markdown(text)

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module SurveysHelper module SurveysHelper
end end

View File

@ -1,2 +1,3 @@
# -*- encoding : utf-8 -*-
module TinyUrlsHelper module TinyUrlsHelper
end end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Admin < ActiveRecord::Base class Admin < ActiveRecord::Base
# Include default devise modules. Others available are: # Include default devise modules. Others available are:
# :token_authenticatable, :confirmable, # :token_authenticatable, :confirmable,

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Donate < ActiveRecord::Base class Donate < ActiveRecord::Base
belongs_to :sheet belongs_to :sheet

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Newsgroup < ActiveRecord::Base class Newsgroup < ActiveRecord::Base
has_many :people_newsgroups has_many :people_newsgroups
has_many :people, :through => :people_newsgroups has_many :people, :through => :people_newsgroups

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Note < ActiveRecord::Base class Note < ActiveRecord::Base
belongs_to :admin belongs_to :admin
belongs_to :topic belongs_to :topic

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class NoteFile < ActiveRecord::Base class NoteFile < ActiveRecord::Base
attr_accessor :file_cache, :original_filename attr_accessor :file_cache, :original_filename

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class PeopleNewsgroup < ActiveRecord::Base class PeopleNewsgroup < ActiveRecord::Base
belongs_to :person belongs_to :person
belongs_to :newsgroup belongs_to :newsgroup

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Person < ActiveRecord::Base class Person < ActiveRecord::Base
belongs_to :sheet belongs_to :sheet
#validates_presence_of :surname, :firstname #validates_presence_of :surname, :firstname

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class QuestionSet < ActiveRecord::Base class QuestionSet < ActiveRecord::Base
belongs_to :survey_item belongs_to :survey_item
belongs_to :survey_set belongs_to :survey_set

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyItem < ActiveRecord::Base class SurveyItem < ActiveRecord::Base
belongs_to :survey_type belongs_to :survey_type
attr_accessible :description, :display_type, :help, :item_type, :questions_type, :string_type, :title, :archived, :locked, :text_presentation, :max_checkboxes attr_accessible :description, :display_type, :help, :item_type, :questions_type, :string_type, :title, :archived, :locked, :text_presentation, :max_checkboxes

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyItemAnswer < ActiveRecord::Base class SurveyItemAnswer < ActiveRecord::Base
belongs_to :survey_item belongs_to :survey_item
attr_accessible :class_text, :data_type, :field_type, :help_text, :label_text, :archived, :locked attr_accessible :class_text, :data_type, :field_type, :help_text, :label_text, :archived, :locked

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveySet < ActiveRecord::Base class SurveySet < ActiveRecord::Base
belongs_to :survey_type belongs_to :survey_type
has_many :question_sets has_many :question_sets

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SurveyType < ActiveRecord::Base class SurveyType < ActiveRecord::Base
attr_accessible :description, :intro_text, :name, :thank_text, :locked, :archived, :slug attr_accessible :description, :intro_text, :name, :thank_text, :locked, :archived, :slug

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class TinyUrl < ActiveRecord::Base class TinyUrl < ActiveRecord::Base
attr_accessible :nbr_views, :slug, :start_at, :stop_at, :url attr_accessible :nbr_views, :slug, :start_at, :stop_at, :url
end end

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Topic < ActiveRecord::Base class Topic < ActiveRecord::Base
belongs_to :admin belongs_to :admin
attr_accessible :description, :title attr_accessible :description, :title

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class YearPaiement < ActiveRecord::Base class YearPaiement < ActiveRecord::Base
belongs_to :join_year belongs_to :join_year

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require File.expand_path('../boot', __FILE__) require File.expand_path('../boot', __FILE__)
require 'rails/all' require 'rails/all'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'rubygems' require 'rubygems'
# Set up gems listed in the Gemfile. # Set up gems listed in the Gemfile.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
set :application, 'pic_vert_app' set :application, 'pic_vert_app'
set :domain, 'www2.lepicvert.asso.fr' set :domain, 'www2.lepicvert.asso.fr'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Load the rails application # Load the rails application
require File.expand_path('../application', __FILE__) require File.expand_path('../application', __FILE__)

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
HOSTNAME = 'localhost:3000' HOSTNAME = 'localhost:3000'
Survey::Application.configure do Survey::Application.configure do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
HOSTNAME = 'http://lepicvert.org' HOSTNAME = 'http://lepicvert.org'
Survey::Application.configure do Survey::Application.configure do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
Survey::Application.configure do Survey::Application.configure do
# Settings specified here will take precedence over those in config/application.rb # Settings specified here will take precedence over those in config/application.rb

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # 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. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Use this hook to configure devise mailer, warden hooks and so forth. # Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model. # Many of these configuration options can be set straight in your model.
Devise.setup do |config| Devise.setup do |config|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format # Add new inflection rules using the following format

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks: # Add new mime types for use in respond_to blocks:

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies. # Your secret key for verifying the integrity of signed cookies.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
Survey::Application.config.session_store :cookie_store, key: '_survey_session' Survey::Application.config.session_store :cookie_store, key: '_survey_session'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# #
# This file contains settings for ActionController::ParamsWrapper which # This file contains settings for ActionController::ParamsWrapper which

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
Survey::Application.routes.draw do Survey::Application.routes.draw do

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
@rails_app = "pic_vert_app" @rails_app = "pic_vert_app"
working_directory "/home/web/#{@rails_app}/current" working_directory "/home/web/#{@rails_app}/current"

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNewsgroups < ActiveRecord::Migration class CreateNewsgroups < ActiveRecord::Migration
def self.up def self.up
create_table :newsgroups do |t| create_table :newsgroups do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSheets < ActiveRecord::Migration class CreateSheets < ActiveRecord::Migration
def self.up def self.up
create_table :sheets do |t| create_table :sheets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreatePeople < ActiveRecord::Migration class CreatePeople < ActiveRecord::Migration
def self.up def self.up
create_table :people do |t| create_table :people do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSheetYears < ActiveRecord::Migration class CreateSheetYears < ActiveRecord::Migration
def self.up def self.up
create_table :sheet_years do |t| create_table :sheet_years do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateDonates < ActiveRecord::Migration class CreateDonates < ActiveRecord::Migration
def self.up def self.up
create_table :donates do |t| create_table :donates do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreatePeopleNewsgroups < ActiveRecord::Migration class CreatePeopleNewsgroups < ActiveRecord::Migration
def self.up def self.up
create_table :people_newsgroups do |t| create_table :people_newsgroups do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyTypes < ActiveRecord::Migration class CreateSurveyTypes < ActiveRecord::Migration
def change def change
create_table :survey_types do |t| create_table :survey_types do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyItems < ActiveRecord::Migration class CreateSurveyItems < ActiveRecord::Migration
def change def change
create_table :survey_items do |t| create_table :survey_items do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveyItemAnswers < ActiveRecord::Migration class CreateSurveyItemAnswers < ActiveRecord::Migration
def change def change
create_table :survey_item_answers do |t| create_table :survey_item_answers do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateSurveySets < ActiveRecord::Migration class CreateSurveySets < ActiveRecord::Migration
def change def change
create_table :survey_sets do |t| create_table :survey_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateQuestionSets < ActiveRecord::Migration class CreateQuestionSets < ActiveRecord::Migration
def change def change
create_table :question_sets do |t| create_table :question_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateAnswerSets < ActiveRecord::Migration class CreateAnswerSets < ActiveRecord::Migration
def change def change
create_table :answer_sets do |t| create_table :answer_sets do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class ChangeDataTypeForTableColumn < ActiveRecord::Migration class ChangeDataTypeForTableColumn < ActiveRecord::Migration
def up def up
change_column :question_sets, :content, :text change_column :question_sets, :content, :text

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateTinyUrls < ActiveRecord::Migration class CreateTinyUrls < ActiveRecord::Migration
def change def change
create_table :tiny_urls do |t| create_table :tiny_urls do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateTopics < ActiveRecord::Migration class CreateTopics < ActiveRecord::Migration
def change def change
create_table :topics do |t| create_table :topics do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNotes < ActiveRecord::Migration class CreateNotes < ActiveRecord::Migration
def change def change
create_table :notes do |t| create_table :notes do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class CreateNoteFiles < ActiveRecord::Migration class CreateNoteFiles < ActiveRecord::Migration
def change def change
create_table :note_files do |t| create_table :note_files do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class DeviseCreateAdmins < ActiveRecord::Migration class DeviseCreateAdmins < ActiveRecord::Migration
def change def change
create_table(:admins) do |t| create_table(:admins) do |t|

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class AddUsernameToAdmins < ActiveRecord::Migration class AddUsernameToAdmins < ActiveRecord::Migration
def change def change
add_column :admins, :username, :string add_column :admins, :username, :string

View File

@ -1,4 +1,4 @@
# encoding: UTF-8 # -*- encoding : utf-8 -*-
# This file is auto-generated from the current state of the database. Instead # 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 # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class Sheet < ActiveRecord::Base class Sheet < ActiveRecord::Base
has_many :people, :dependent => :destroy has_many :people, :dependent => :destroy
has_many :sheet_years, :order => "year DESC", :dependent => :destroy has_many :sheet_years, :order => "year DESC", :dependent => :destroy

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
class SheetYear < ActiveRecord::Base class SheetYear < ActiveRecord::Base
belongs_to :sheet belongs_to :sheet

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveysControllerTest < ActionController::TestCase class SurveysControllerTest < ActionController::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class TinyUrlsControllerTest < ActionController::TestCase class TinyUrlsControllerTest < ActionController::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
require 'rails/performance_test_help' require 'rails/performance_test_help'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
ENV["RAILS_ENV"] = "test" ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class AdminTest < ActiveSupport::TestCase class AdminTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class AnswerSetTest < ActiveSupport::TestCase class AnswerSetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveysHelperTest < ActionView::TestCase class SurveysHelperTest < ActionView::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class TinyUrlsHelperTest < ActionView::TestCase class TinyUrlsHelperTest < ActionView::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class QuestionSetTest < ActiveSupport::TestCase class QuestionSetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveyItemAnswerTest < ActiveSupport::TestCase class SurveyItemAnswerTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveyItemTest < ActiveSupport::TestCase class SurveyItemTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveySetTest < ActiveSupport::TestCase class SurveySetTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class SurveyTypeTest < ActiveSupport::TestCase class SurveyTypeTest < ActiveSupport::TestCase

View File

@ -1,3 +1,4 @@
# -*- encoding : utf-8 -*-
require 'test_helper' require 'test_helper'
class TinyUrlTest < ActiveSupport::TestCase class TinyUrlTest < ActiveSupport::TestCase