Skip to content

Commit 1386c3e

Browse files
committed
Adding some more files
1 parent b75aa30 commit 1386c3e

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Filters added to this controller apply to all controllers in the application.
2+
# Likewise, all the methods added will be available for all controllers.
3+
4+
class ApplicationController < ActionController::Base
5+
helper :all # include all helpers, all the time
6+
protect_from_forgery # See ActionController::RequestForgeryProtection for details
7+
8+
# Scrub sensitive parameters from your log
9+
# filter_parameter_logging :password
10+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Be sure to restart your server when you modify this file.
2+
3+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5+
6+
# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
7+
# Rails.backtrace_cleaner.remove_silencers!

config/initializers/session_store.rb

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Be sure to restart your server when you modify this file.
2+
3+
# Your secret key for verifying cookie session data integrity.
4+
# If you change this key, all old sessions will become invalid!
5+
# Make sure the secret is at least 30 characters and all random,
6+
# no regular words or you'll be exposed to dictionary attacks.
7+
ActionController::Base.session = {
8+
:key => '_rtreino_session',
9+
:secret => '04519cc91348cb7c5b52564ee5bc2275ec8bc7f0bd6023257113042404d2853907ebe963e752e68ef8ade02daae88f51369ae43b6e73304cd3ab30536d1273ff'
10+
}
11+
12+
# Use the database for sessions instead of the cookie-based default,
13+
# which shouldn't be used to store highly confidential information
14+
# (create the session table with "rake db:sessions:create")
15+
# ActionController::Base.session_store = :active_record_store

config/locales/en.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Sample localization file for English. Add more files in this directory for other locales.
2+
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3+
4+
en:
5+
hello: "Hello world"

test/performance/browsing_test.rb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'test_helper'
2+
require 'performance_test_help'
3+
4+
# Profiling results for each test method are written to tmp/performance.
5+
class BrowsingTest < ActionController::PerformanceTest
6+
def test_homepage
7+
get '/'
8+
end
9+
end

0 commit comments

Comments
 (0)