magick encoding
This commit is contained in:
parent
ad40c4e2ad
commit
9abaa20c91
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class NoteFilesController < ApplicationController
|
||||
# GET /note_files
|
||||
# GET /note_files.json
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class NotesController < ApplicationController
|
||||
|
||||
def show
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class TopicsController < ApplicationController
|
||||
before_filter :authenticate_admin!
|
||||
layout "topics"
|
||||
|
@ -1,2 +1,3 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
module ApplicationHelper
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
module MarkdownHelper
|
||||
|
||||
def markdown(text)
|
||||
|
@ -1,2 +1,3 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
module SurveysHelper
|
||||
end
|
||||
|
@ -1,2 +1,3 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
module TinyUrlsHelper
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Admin < ActiveRecord::Base
|
||||
# Include default devise modules. Others available are:
|
||||
# :token_authenticatable, :confirmable,
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Donate < ActiveRecord::Base
|
||||
belongs_to :sheet
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Newsgroup < ActiveRecord::Base
|
||||
has_many :people_newsgroups
|
||||
has_many :people, :through => :people_newsgroups
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Note < ActiveRecord::Base
|
||||
belongs_to :admin
|
||||
belongs_to :topic
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class NoteFile < ActiveRecord::Base
|
||||
|
||||
attr_accessor :file_cache, :original_filename
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class PeopleNewsgroup < ActiveRecord::Base
|
||||
belongs_to :person
|
||||
belongs_to :newsgroup
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Person < ActiveRecord::Base
|
||||
belongs_to :sheet
|
||||
#validates_presence_of :surname, :firstname
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class QuestionSet < ActiveRecord::Base
|
||||
belongs_to :survey_item
|
||||
belongs_to :survey_set
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class SurveySet < ActiveRecord::Base
|
||||
belongs_to :survey_type
|
||||
has_many :question_sets
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class SurveyType < ActiveRecord::Base
|
||||
attr_accessible :description, :intro_text, :name, :thank_text, :locked, :archived, :slug
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class TinyUrl < ActiveRecord::Base
|
||||
attr_accessible :nbr_views, :slug, :start_at, :stop_at, :url
|
||||
end
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class Topic < ActiveRecord::Base
|
||||
belongs_to :admin
|
||||
attr_accessible :description, :title
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class YearPaiement < ActiveRecord::Base
|
||||
belongs_to :join_year
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require File.expand_path('../boot', __FILE__)
|
||||
|
||||
require 'rails/all'
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'rubygems'
|
||||
|
||||
# Set up gems listed in the Gemfile.
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
set :application, 'pic_vert_app'
|
||||
set :domain, 'www2.lepicvert.asso.fr'
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
# Load the rails application
|
||||
require File.expand_path('../application', __FILE__)
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
HOSTNAME = 'localhost:3000'
|
||||
|
||||
Survey::Application.configure do
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
HOSTNAME = 'http://lepicvert.org'
|
||||
|
||||
Survey::Application.configure do
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
Survey::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.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.
|
||||
|
@ -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|
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
Survey::Application.routes.draw do
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
@rails_app = "pic_vert_app"
|
||||
|
||||
working_directory "/home/web/#{@rails_app}/current"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateNewsgroups < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :newsgroups do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSheets < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :sheets do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreatePeople < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :people do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSheetYears < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :sheet_years do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateDonates < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :donates do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreatePeopleNewsgroups < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :people_newsgroups do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSurveyTypes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :survey_types do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSurveyItems < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :survey_items do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSurveyItemAnswers < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :survey_item_answers do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateSurveySets < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :survey_sets do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateQuestionSets < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :question_sets do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateAnswerSets < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :answer_sets do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class ChangeDataTypeForTableColumn < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :question_sets, :content, :text
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateTinyUrls < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :tiny_urls do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateTopics < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :topics do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateNotes < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :notes do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class CreateNoteFiles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :note_files do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class DeviseCreateAdmins < ActiveRecord::Migration
|
||||
def change
|
||||
create_table(:admins) do |t|
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class AddUsernameToAdmins < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :admins, :username, :string
|
||||
|
@ -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.
|
||||
|
1
sheet.rb
1
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
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
class SheetYear < ActiveRecord::Base
|
||||
belongs_to :sheet
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveysControllerTest < ActionController::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class TinyUrlsControllerTest < ActionController::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
require 'rails/performance_test_help'
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
require File.expand_path('../../config/environment', __FILE__)
|
||||
require 'rails/test_help'
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class AdminTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class AnswerSetTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveysHelperTest < ActionView::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class TinyUrlsHelperTest < ActionView::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class QuestionSetTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveyItemAnswerTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveyItemTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveySetTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class SurveyTypeTest < ActiveSupport::TestCase
|
||||
|
@ -1,3 +1,4 @@
|
||||
# -*- encoding : utf-8 -*-
|
||||
require 'test_helper'
|
||||
|
||||
class TinyUrlTest < ActiveSupport::TestCase
|
||||
|
Loading…
x
Reference in New Issue
Block a user