bigbluebutton_rails 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +6 -0
- data/.rspec +2 -0
- data/CHANGELOG.rdoc +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +111 -0
- data/README.rdoc +147 -0
- data/Rakefile +37 -0
- data/app/controllers/bigbluebutton/rooms_controller.rb +193 -0
- data/app/controllers/bigbluebutton/servers_controller.rb +56 -0
- data/app/models/bigbluebutton_room.rb +16 -0
- data/app/models/bigbluebutton_server.rb +25 -0
- data/app/views/bigbluebutton/rooms/_form.html.erb +41 -0
- data/app/views/bigbluebutton/rooms/edit.html.erb +6 -0
- data/app/views/bigbluebutton/rooms/index.html.erb +34 -0
- data/app/views/bigbluebutton/rooms/join_wait.html.erb +27 -0
- data/app/views/bigbluebutton/rooms/new.html.erb +5 -0
- data/app/views/bigbluebutton/rooms/show.html.erb +35 -0
- data/app/views/bigbluebutton/servers/_form.html.erb +32 -0
- data/app/views/bigbluebutton/servers/edit.html.erb +6 -0
- data/app/views/bigbluebutton/servers/index.html.erb +27 -0
- data/app/views/bigbluebutton/servers/new.html.erb +5 -0
- data/app/views/bigbluebutton/servers/show.html.erb +31 -0
- data/bigbluebutton_rails.gemspec +27 -0
- data/config/locales/en.yml +18 -0
- data/config/routes.rb +2 -0
- data/lib/bigbluebutton_rails.rb +7 -0
- data/lib/bigbluebutton_rails/controller_methods.rb +52 -0
- data/lib/bigbluebutton_rails/rails.rb +11 -0
- data/lib/bigbluebutton_rails/rails/routes.rb +102 -0
- data/lib/bigbluebutton_rails/version.rb +3 -0
- data/lib/generators/bigbluebutton_rails/install_generator.rb +25 -0
- data/lib/generators/bigbluebutton_rails/public_generator.rb +17 -0
- data/lib/generators/bigbluebutton_rails/templates/migration.rb +31 -0
- data/lib/generators/bigbluebutton_rails/templates/public/images/loading.gif +0 -0
- data/lib/generators/bigbluebutton_rails/templates/public/javascripts/heartbeat.js +54 -0
- data/lib/generators/bigbluebutton_rails/templates/public/javascripts/jquery.min.js +16 -0
- data/lib/generators/bigbluebutton_rails/views_generator.rb +18 -0
- data/spec/bigbluebutton_rails_spec.rb +11 -0
- data/spec/controllers/bigbluebutton/rooms_controller_spec.rb +404 -0
- data/spec/controllers/bigbluebutton/servers_controller_spec.rb +78 -0
- data/spec/factories/bigbluebutton_room.rb +8 -0
- data/spec/factories/bigbluebutton_server.rb +6 -0
- data/spec/generators/install_generator_spec.rb +23 -0
- data/spec/generators/public_generator_spec.rb +32 -0
- data/spec/generators/views_generator_spec.rb +52 -0
- data/spec/models/bigbluebutton_room_spec.rb +48 -0
- data/spec/models/bigbluebutton_server_spec.rb +83 -0
- data/spec/rails_app/.gitignore +3 -0
- data/spec/rails_app/Rakefile +7 -0
- data/spec/rails_app/app/controllers/application_controller.rb +16 -0
- data/spec/rails_app/app/controllers/space_controller.rb +8 -0
- data/spec/rails_app/app/controllers/user_controller.rb +8 -0
- data/spec/rails_app/app/helpers/application_helper.rb +2 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
- data/spec/rails_app/app/views/space/index.html.erb +2 -0
- data/spec/rails_app/app/views/space/show.html.erb +2 -0
- data/spec/rails_app/app/views/user/index.html.erb +2 -0
- data/spec/rails_app/app/views/user/show.html.erb +2 -0
- data/spec/rails_app/config.ru +4 -0
- data/spec/rails_app/config/application.rb +45 -0
- data/spec/rails_app/config/boot.rb +10 -0
- data/spec/rails_app/config/database.yml +22 -0
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +26 -0
- data/spec/rails_app/config/environments/production.rb +49 -0
- data/spec/rails_app/config/environments/test.rb +35 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +10 -0
- data/spec/rails_app/config/initializers/mime_types.rb +5 -0
- data/spec/rails_app/config/initializers/secret_token.rb +7 -0
- data/spec/rails_app/config/initializers/session_store.rb +8 -0
- data/spec/rails_app/config/locales/en.yml +5 -0
- data/spec/rails_app/config/routes.rb +14 -0
- data/spec/rails_app/db/seeds.rb +7 -0
- data/spec/rails_app/doc/README_FOR_APP +2 -0
- data/spec/rails_app/public/404.html +26 -0
- data/spec/rails_app/public/422.html +26 -0
- data/spec/rails_app/public/500.html +26 -0
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/public/images/rails.png +0 -0
- data/spec/rails_app/public/index.html +239 -0
- data/spec/rails_app/public/javascripts/application.js +2 -0
- data/spec/rails_app/public/javascripts/controls.js +965 -0
- data/spec/rails_app/public/javascripts/dragdrop.js +974 -0
- data/spec/rails_app/public/javascripts/effects.js +1123 -0
- data/spec/rails_app/public/javascripts/prototype.js +6001 -0
- data/spec/rails_app/public/javascripts/rails.js +191 -0
- data/spec/rails_app/public/robots.txt +5 -0
- data/spec/rails_app/public/stylesheets/.gitkeep +0 -0
- data/spec/rails_app/public/stylesheets/scaffold.css +56 -0
- data/spec/rails_app/script/rails +6 -0
- data/spec/rails_app/vendor/plugins/.gitkeep +0 -0
- data/spec/routing/bigbluebutton/rooms_routing_spec.rb +89 -0
- data/spec/routing/bigbluebutton/servers_routing_spec.rb +38 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/support/matchers/have_same_attributes_as.rb +10 -0
- metadata +234 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Bigbluebutton::ServersController do
|
4
|
+
|
5
|
+
render_views
|
6
|
+
let(:server) { Factory.create(:bigbluebutton_server) }
|
7
|
+
|
8
|
+
describe "#index" do
|
9
|
+
before(:each) { get :index }
|
10
|
+
it { should respond_with(:success) }
|
11
|
+
it { should assign_to(:servers).with(BigbluebuttonServer.all) }
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "#show" do
|
15
|
+
before(:each) { get :show, :id => server.to_param }
|
16
|
+
it { should respond_with(:success) }
|
17
|
+
it { should assign_to(:server).with(server) }
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "#new" do
|
21
|
+
before(:each) { get :new }
|
22
|
+
it { should respond_with(:success) }
|
23
|
+
it { should assign_to(:server).with_kind_of(BigbluebuttonServer) }
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "#edit" do
|
27
|
+
before(:each) { get :edit, :id => server.to_param }
|
28
|
+
it { should respond_with(:success) }
|
29
|
+
it { should assign_to(:server).with(server) }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "#create" do
|
33
|
+
before :each do
|
34
|
+
expect {
|
35
|
+
post :create, :bigbluebutton_server => Factory.attributes_for(:bigbluebutton_server)
|
36
|
+
}.to change{ BigbluebuttonServer.count }.by(1)
|
37
|
+
end
|
38
|
+
it {
|
39
|
+
should respond_with(:redirect)
|
40
|
+
should redirect_to(bigbluebutton_server_path(BigbluebuttonServer.last))
|
41
|
+
}
|
42
|
+
it { should set_the_flash.to(I18n.t('bigbluebutton_rails.servers.notice.create.success')) }
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "#update" do
|
46
|
+
let(:new_server) { Factory.build(:bigbluebutton_server) }
|
47
|
+
before :each do
|
48
|
+
@server = server
|
49
|
+
expect {
|
50
|
+
put :update, :id => @server.to_param, :bigbluebutton_server => new_server.attributes
|
51
|
+
}.not_to change{ BigbluebuttonServer.count }
|
52
|
+
end
|
53
|
+
it {
|
54
|
+
should respond_with(:redirect)
|
55
|
+
should redirect_to(bigbluebutton_server_path(@server))
|
56
|
+
}
|
57
|
+
it {
|
58
|
+
saved = BigbluebuttonServer.find(@server)
|
59
|
+
saved.should have_same_attributes_as(new_server)
|
60
|
+
}
|
61
|
+
it { should set_the_flash.to(I18n.t('bigbluebutton_rails.servers.notice.update.success')) }
|
62
|
+
end
|
63
|
+
|
64
|
+
describe "#destroy" do
|
65
|
+
before :each do
|
66
|
+
@server = server
|
67
|
+
expect {
|
68
|
+
delete :destroy, :id => @server.to_param
|
69
|
+
}.to change{ BigbluebuttonServer.count }.by(-1)
|
70
|
+
end
|
71
|
+
it {
|
72
|
+
should respond_with(:redirect)
|
73
|
+
should redirect_to(bigbluebutton_servers_path)
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Factory.define :bigbluebutton_room do |r|
|
2
|
+
r.association :server, :factory => :bigbluebutton_server
|
3
|
+
r.sequence(:meeting_id) { |n| "MeetingID#{n}" }
|
4
|
+
r.sequence(:name) { |n| "Name#{n}" }
|
5
|
+
r.attendee_password { Forgery(:basic).password :at_least => 10, :at_most => 20 }
|
6
|
+
r.moderator_password { Forgery(:basic).password :at_least => 10, :at_most => 20 }
|
7
|
+
r.welcome_msg { Forgery(:lorem_ipsum).sentences(2) }
|
8
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe BigbluebuttonRails::Generators::InstallGenerator do
|
4
|
+
include GeneratorSpec::TestCase
|
5
|
+
destination File.expand_path("../../../tmp", __FILE__)
|
6
|
+
tests BigbluebuttonRails::Generators::InstallGenerator
|
7
|
+
|
8
|
+
before(:all) do
|
9
|
+
prepare_destination
|
10
|
+
run_generator
|
11
|
+
end
|
12
|
+
|
13
|
+
it "all files are properly created" do
|
14
|
+
assert_migration "db/migrate/create_bigbluebutton_rails.rb"
|
15
|
+
assert_file "config/locales/bigbluebutton_rails.en.yml"
|
16
|
+
end
|
17
|
+
|
18
|
+
it "all files are properly destroyed" do
|
19
|
+
run_generator %w(), :behavior => :revoke
|
20
|
+
assert_no_file "config/locales/bigbluebutton_rails.en.yml"
|
21
|
+
assert_no_migration "db/migrate/create_bigbluebutton_rails.rb"
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe BigbluebuttonRails::Generators::PublicGenerator do
|
4
|
+
include GeneratorSpec::TestCase
|
5
|
+
destination File.expand_path("../../../tmp", __FILE__)
|
6
|
+
tests BigbluebuttonRails::Generators::PublicGenerator
|
7
|
+
|
8
|
+
before(:all) do
|
9
|
+
prepare_destination
|
10
|
+
end
|
11
|
+
|
12
|
+
it "creates and revokes all files properly" do
|
13
|
+
run_generator
|
14
|
+
assert_files
|
15
|
+
run_generator %w(), :behavior => :revoke
|
16
|
+
assert_files(false)
|
17
|
+
end
|
18
|
+
|
19
|
+
def assert_files(assert_exists=true)
|
20
|
+
files = [
|
21
|
+
"public/images/loading.gif",
|
22
|
+
"public/javascripts/heartbeat.js",
|
23
|
+
"public/javascripts/jquery.min.js"
|
24
|
+
]
|
25
|
+
if assert_exists
|
26
|
+
files.each { |f| assert_file f }
|
27
|
+
else
|
28
|
+
files.each { |f| assert_no_file f }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe BigbluebuttonRails::Generators::ViewsGenerator do
|
4
|
+
include GeneratorSpec::TestCase
|
5
|
+
destination File.expand_path("../../../tmp", __FILE__)
|
6
|
+
tests BigbluebuttonRails::Generators::ViewsGenerator
|
7
|
+
|
8
|
+
before(:all) do
|
9
|
+
prepare_destination
|
10
|
+
end
|
11
|
+
|
12
|
+
it "creates and revokes all files properly with no params" do
|
13
|
+
run_generator
|
14
|
+
assert_files
|
15
|
+
run_generator %w(), :behavior => :revoke
|
16
|
+
assert_files(false)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "creates and revokes all files properly with scope param" do
|
20
|
+
run_generator %w(webconference)
|
21
|
+
assert_files(true, "webconference")
|
22
|
+
run_generator %w(webconference), :behavior => :revoke
|
23
|
+
assert_files(false, "webconference")
|
24
|
+
|
25
|
+
run_generator %w(the_cake_is_a_lie)
|
26
|
+
assert_files(true, "the_cake_is_a_lie")
|
27
|
+
run_generator %w(the_cake_is_a_lie), :behavior => :revoke
|
28
|
+
assert_files(false, "the_cake_is_a_lie")
|
29
|
+
end
|
30
|
+
|
31
|
+
def assert_files(assert_exists=true, scope="bigbluebutton")
|
32
|
+
files = [
|
33
|
+
"app/views/#{scope}/rooms/edit.html.erb",
|
34
|
+
"app/views/#{scope}/rooms/_form.html.erb",
|
35
|
+
"app/views/#{scope}/rooms/index.html.erb",
|
36
|
+
"app/views/#{scope}/rooms/join_wait.html.erb",
|
37
|
+
"app/views/#{scope}/rooms/new.html.erb",
|
38
|
+
"app/views/#{scope}/rooms/show.html.erb",
|
39
|
+
"app/views/#{scope}/servers/edit.html.erb",
|
40
|
+
"app/views/#{scope}/servers/_form.html.erb",
|
41
|
+
"app/views/#{scope}/servers/index.html.erb",
|
42
|
+
"app/views/#{scope}/servers/new.html.erb",
|
43
|
+
"app/views/#{scope}/servers/show.html.erb"
|
44
|
+
]
|
45
|
+
if assert_exists
|
46
|
+
files.each { |f| assert_file f }
|
47
|
+
else
|
48
|
+
files.each { |f| assert_no_file f }
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BigbluebuttonRoom do
|
4
|
+
it "loaded correctly" do
|
5
|
+
BigbluebuttonRoom.new.should be_a_kind_of(ActiveRecord::Base)
|
6
|
+
end
|
7
|
+
|
8
|
+
before { Factory.create(:bigbluebutton_room) }
|
9
|
+
|
10
|
+
it { should belong_to(:server) }
|
11
|
+
|
12
|
+
it { should belong_to(:owner) }
|
13
|
+
it { should have_db_column(:owner_id).of_type(:integer) }
|
14
|
+
it { should have_db_column(:owner_type).of_type(:string) }
|
15
|
+
it { should_not validate_presence_of(:owner_id) }
|
16
|
+
it { should_not validate_presence_of(:owner_type) }
|
17
|
+
|
18
|
+
it { should validate_presence_of(:server_id) }
|
19
|
+
it { should validate_presence_of(:meeting_id) }
|
20
|
+
it { should validate_presence_of(:name) }
|
21
|
+
|
22
|
+
it { should allow_mass_assignment_of(:name) }
|
23
|
+
it { should allow_mass_assignment_of(:attendee_password) }
|
24
|
+
it { should allow_mass_assignment_of(:moderator_password) }
|
25
|
+
it { should allow_mass_assignment_of(:welcome_msg) }
|
26
|
+
it { should allow_mass_assignment_of(:server_id) }
|
27
|
+
it { should allow_mass_assignment_of(:meeting_id) }
|
28
|
+
it { should_not allow_mass_assignment_of(:id) }
|
29
|
+
|
30
|
+
it { should validate_uniqueness_of(:meeting_id) }
|
31
|
+
it { should validate_uniqueness_of(:name) }
|
32
|
+
|
33
|
+
it {
|
34
|
+
room = Factory.create(:bigbluebutton_room)
|
35
|
+
room.server.should_not be_nil
|
36
|
+
}
|
37
|
+
|
38
|
+
it { should ensure_length_of(:meeting_id).
|
39
|
+
is_at_least(1).is_at_most(100) }
|
40
|
+
it { should ensure_length_of(:name).
|
41
|
+
is_at_least(1).is_at_most(150) }
|
42
|
+
it { should ensure_length_of(:attendee_password).
|
43
|
+
is_at_most(50) }
|
44
|
+
it { should ensure_length_of(:moderator_password).
|
45
|
+
is_at_most(50) }
|
46
|
+
it { should ensure_length_of(:welcome_msg).
|
47
|
+
is_at_most(250) }
|
48
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BigbluebuttonServer do
|
4
|
+
it "loaded correctly" do
|
5
|
+
BigbluebuttonServer.new.should be_a_kind_of(ActiveRecord::Base)
|
6
|
+
end
|
7
|
+
|
8
|
+
it { should have_many(:rooms) }
|
9
|
+
|
10
|
+
it { should validate_presence_of(:name) }
|
11
|
+
it { should validate_presence_of(:url) }
|
12
|
+
it { should validate_presence_of(:salt) }
|
13
|
+
it { should validate_presence_of(:version) }
|
14
|
+
|
15
|
+
it { should allow_mass_assignment_of(:name) }
|
16
|
+
it { should allow_mass_assignment_of(:url) }
|
17
|
+
it { should allow_mass_assignment_of(:salt) }
|
18
|
+
|
19
|
+
it {
|
20
|
+
Factory.create(:bigbluebutton_server)
|
21
|
+
should validate_uniqueness_of(:url)
|
22
|
+
}
|
23
|
+
|
24
|
+
it "has associated rooms" do
|
25
|
+
server = Factory.create(:bigbluebutton_server)
|
26
|
+
server.rooms.should be_empty
|
27
|
+
|
28
|
+
Factory.create(:bigbluebutton_room, :server => server)
|
29
|
+
server = BigbluebuttonServer.find(server.id)
|
30
|
+
server.rooms.should_not be_empty
|
31
|
+
end
|
32
|
+
|
33
|
+
it "destroys associated rooms" do
|
34
|
+
server = Factory.create(:bigbluebutton_server)
|
35
|
+
Factory.create(:bigbluebutton_room, :server => server)
|
36
|
+
Factory.create(:bigbluebutton_room, :server => server)
|
37
|
+
expect {
|
38
|
+
expect {
|
39
|
+
server.destroy
|
40
|
+
}.to change{ BigbluebuttonServer.count }.by(-1)
|
41
|
+
}.to change{ BigbluebuttonRoom.count }.by(-2)
|
42
|
+
end
|
43
|
+
|
44
|
+
it { should ensure_length_of(:name).is_at_least(1).is_at_most(500) }
|
45
|
+
it { should ensure_length_of(:url).is_at_most(500) }
|
46
|
+
it { should ensure_length_of(:salt).is_at_least(1).is_at_most(500) }
|
47
|
+
|
48
|
+
it { should allow_value('http://demo.bigbluebutton.org/bigbluebutton/api').for(:url) }
|
49
|
+
it { should_not allow_value('').for(:url) }
|
50
|
+
it { should_not allow_value('http://demo.bigbluebutton.org').for(:url) }
|
51
|
+
it { should_not allow_value('demo.bigbluebutton.org/bigbluebutton/api').for(:url) }
|
52
|
+
|
53
|
+
it { should allow_value('0.64').for(:version) }
|
54
|
+
it { should allow_value('0.7').for(:version) }
|
55
|
+
it { should_not allow_value('').for(:version) }
|
56
|
+
it { should_not allow_value('0.8').for(:version) }
|
57
|
+
it { should_not allow_value('0.6').for(:version) }
|
58
|
+
|
59
|
+
context "has an api object" do
|
60
|
+
let(:server) { server = Factory.build(:bigbluebutton_server) }
|
61
|
+
it { should respond_to(:api) }
|
62
|
+
it { server.api.should_not be_nil }
|
63
|
+
it {
|
64
|
+
server.save
|
65
|
+
server.api.should_not be_nil
|
66
|
+
}
|
67
|
+
context "with the correct attributes" do
|
68
|
+
let(:api) { api = BigBlueButton::BigBlueButtonApi.new(server.url, server.salt,
|
69
|
+
server.version, false) }
|
70
|
+
it { server.api.should == api }
|
71
|
+
|
72
|
+
# updating any of these attributes should update the api
|
73
|
+
{ :url => 'http://anotherurl.com/bigbluebutton/api',
|
74
|
+
:salt => '12345-abcde-67890-fghijk', :version => '0.64' }.each do |k,v|
|
75
|
+
it {
|
76
|
+
server.send("#{k}=", v)
|
77
|
+
server.api.send(k).should == v
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require File.expand_path('../config/application', __FILE__)
|
5
|
+
require 'rake'
|
6
|
+
|
7
|
+
RailsApp::Application.load_tasks
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "active_model/railtie"
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_view/railtie"
|
7
|
+
require "action_mailer/railtie"
|
8
|
+
|
9
|
+
Bundler.require
|
10
|
+
require 'bigbluebutton_rails'
|
11
|
+
|
12
|
+
module RailsApp
|
13
|
+
class Application < Rails::Application
|
14
|
+
# Settings in config/environments/* take precedence over those specified here.
|
15
|
+
# Application configuration should go into files in config/initializers
|
16
|
+
# -- all .rb files in that directory are automatically loaded.
|
17
|
+
|
18
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
+
|
21
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
+
|
25
|
+
# Activate observers that should always be running.
|
26
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
+
|
28
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
+
|
32
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
+
# config.i18n.default_locale = :de
|
35
|
+
|
36
|
+
# JavaScript files you want as :defaults (application.js is always included).
|
37
|
+
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
38
|
+
|
39
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
40
|
+
config.encoding = "utf-8"
|
41
|
+
|
42
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
43
|
+
config.filter_parameters += [:password]
|
44
|
+
end
|
45
|
+
end
|