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.
Files changed (97) hide show
  1. data/.gitignore +6 -0
  2. data/.rspec +2 -0
  3. data/CHANGELOG.rdoc +6 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +111 -0
  6. data/README.rdoc +147 -0
  7. data/Rakefile +37 -0
  8. data/app/controllers/bigbluebutton/rooms_controller.rb +193 -0
  9. data/app/controllers/bigbluebutton/servers_controller.rb +56 -0
  10. data/app/models/bigbluebutton_room.rb +16 -0
  11. data/app/models/bigbluebutton_server.rb +25 -0
  12. data/app/views/bigbluebutton/rooms/_form.html.erb +41 -0
  13. data/app/views/bigbluebutton/rooms/edit.html.erb +6 -0
  14. data/app/views/bigbluebutton/rooms/index.html.erb +34 -0
  15. data/app/views/bigbluebutton/rooms/join_wait.html.erb +27 -0
  16. data/app/views/bigbluebutton/rooms/new.html.erb +5 -0
  17. data/app/views/bigbluebutton/rooms/show.html.erb +35 -0
  18. data/app/views/bigbluebutton/servers/_form.html.erb +32 -0
  19. data/app/views/bigbluebutton/servers/edit.html.erb +6 -0
  20. data/app/views/bigbluebutton/servers/index.html.erb +27 -0
  21. data/app/views/bigbluebutton/servers/new.html.erb +5 -0
  22. data/app/views/bigbluebutton/servers/show.html.erb +31 -0
  23. data/bigbluebutton_rails.gemspec +27 -0
  24. data/config/locales/en.yml +18 -0
  25. data/config/routes.rb +2 -0
  26. data/lib/bigbluebutton_rails.rb +7 -0
  27. data/lib/bigbluebutton_rails/controller_methods.rb +52 -0
  28. data/lib/bigbluebutton_rails/rails.rb +11 -0
  29. data/lib/bigbluebutton_rails/rails/routes.rb +102 -0
  30. data/lib/bigbluebutton_rails/version.rb +3 -0
  31. data/lib/generators/bigbluebutton_rails/install_generator.rb +25 -0
  32. data/lib/generators/bigbluebutton_rails/public_generator.rb +17 -0
  33. data/lib/generators/bigbluebutton_rails/templates/migration.rb +31 -0
  34. data/lib/generators/bigbluebutton_rails/templates/public/images/loading.gif +0 -0
  35. data/lib/generators/bigbluebutton_rails/templates/public/javascripts/heartbeat.js +54 -0
  36. data/lib/generators/bigbluebutton_rails/templates/public/javascripts/jquery.min.js +16 -0
  37. data/lib/generators/bigbluebutton_rails/views_generator.rb +18 -0
  38. data/spec/bigbluebutton_rails_spec.rb +11 -0
  39. data/spec/controllers/bigbluebutton/rooms_controller_spec.rb +404 -0
  40. data/spec/controllers/bigbluebutton/servers_controller_spec.rb +78 -0
  41. data/spec/factories/bigbluebutton_room.rb +8 -0
  42. data/spec/factories/bigbluebutton_server.rb +6 -0
  43. data/spec/generators/install_generator_spec.rb +23 -0
  44. data/spec/generators/public_generator_spec.rb +32 -0
  45. data/spec/generators/views_generator_spec.rb +52 -0
  46. data/spec/models/bigbluebutton_room_spec.rb +48 -0
  47. data/spec/models/bigbluebutton_server_spec.rb +83 -0
  48. data/spec/rails_app/.gitignore +3 -0
  49. data/spec/rails_app/Rakefile +7 -0
  50. data/spec/rails_app/app/controllers/application_controller.rb +16 -0
  51. data/spec/rails_app/app/controllers/space_controller.rb +8 -0
  52. data/spec/rails_app/app/controllers/user_controller.rb +8 -0
  53. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  54. data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
  55. data/spec/rails_app/app/views/space/index.html.erb +2 -0
  56. data/spec/rails_app/app/views/space/show.html.erb +2 -0
  57. data/spec/rails_app/app/views/user/index.html.erb +2 -0
  58. data/spec/rails_app/app/views/user/show.html.erb +2 -0
  59. data/spec/rails_app/config.ru +4 -0
  60. data/spec/rails_app/config/application.rb +45 -0
  61. data/spec/rails_app/config/boot.rb +10 -0
  62. data/spec/rails_app/config/database.yml +22 -0
  63. data/spec/rails_app/config/environment.rb +5 -0
  64. data/spec/rails_app/config/environments/development.rb +26 -0
  65. data/spec/rails_app/config/environments/production.rb +49 -0
  66. data/spec/rails_app/config/environments/test.rb +35 -0
  67. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  68. data/spec/rails_app/config/initializers/inflections.rb +10 -0
  69. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  70. data/spec/rails_app/config/initializers/secret_token.rb +7 -0
  71. data/spec/rails_app/config/initializers/session_store.rb +8 -0
  72. data/spec/rails_app/config/locales/en.yml +5 -0
  73. data/spec/rails_app/config/routes.rb +14 -0
  74. data/spec/rails_app/db/seeds.rb +7 -0
  75. data/spec/rails_app/doc/README_FOR_APP +2 -0
  76. data/spec/rails_app/public/404.html +26 -0
  77. data/spec/rails_app/public/422.html +26 -0
  78. data/spec/rails_app/public/500.html +26 -0
  79. data/spec/rails_app/public/favicon.ico +0 -0
  80. data/spec/rails_app/public/images/rails.png +0 -0
  81. data/spec/rails_app/public/index.html +239 -0
  82. data/spec/rails_app/public/javascripts/application.js +2 -0
  83. data/spec/rails_app/public/javascripts/controls.js +965 -0
  84. data/spec/rails_app/public/javascripts/dragdrop.js +974 -0
  85. data/spec/rails_app/public/javascripts/effects.js +1123 -0
  86. data/spec/rails_app/public/javascripts/prototype.js +6001 -0
  87. data/spec/rails_app/public/javascripts/rails.js +191 -0
  88. data/spec/rails_app/public/robots.txt +5 -0
  89. data/spec/rails_app/public/stylesheets/.gitkeep +0 -0
  90. data/spec/rails_app/public/stylesheets/scaffold.css +56 -0
  91. data/spec/rails_app/script/rails +6 -0
  92. data/spec/rails_app/vendor/plugins/.gitkeep +0 -0
  93. data/spec/routing/bigbluebutton/rooms_routing_spec.rb +89 -0
  94. data/spec/routing/bigbluebutton/servers_routing_spec.rb +38 -0
  95. data/spec/spec_helper.rb +37 -0
  96. data/spec/support/matchers/have_same_attributes_as.rb +10 -0
  97. 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,6 @@
1
+ Factory.define :bigbluebutton_server do |s|
2
+ s.sequence(:name) { |n| "Server #{n}" }
3
+ s.sequence(:url) { |n| "http://bigbluebutton#{n}.test.com/bigbluebutton/api" }
4
+ s.salt { Forgery(:basic).password :at_least => 30, :at_most => 40 }
5
+ s.version '0.7'
6
+ 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,3 @@
1
+ config/locales/bigbluebutton_rails.en.yml
2
+ db/migrate/*bigbluebutton_rails.rb
3
+ db/schema.rb
@@ -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,16 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+
4
+ # def bigbluebutton_user
5
+ # User.new
6
+ # end
7
+
8
+ end
9
+
10
+ class User
11
+ attr_accessor :name
12
+
13
+ def initialize
14
+ self.name = "Chuck"
15
+ end
16
+ end
@@ -0,0 +1,8 @@
1
+ class SpaceController < ApplicationController
2
+ def index
3
+ end
4
+
5
+ def show
6
+ end
7
+
8
+ end
@@ -0,0 +1,8 @@
1
+ class UserController < ApplicationController
2
+ def index
3
+ end
4
+
5
+ def show
6
+ end
7
+
8
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RailsApp</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,2 @@
1
+ <h1>Space#index</h1>
2
+ <p>Find me in app/views/space/index.html.erb</p>
@@ -0,0 +1,2 @@
1
+ <h1>Space#show</h1>
2
+ <p>Find me in app/views/space/show.html.erb</p>
@@ -0,0 +1,2 @@
1
+ <h1>User#index</h1>
2
+ <p>Find me in app/views/user/index.html.erb</p>
@@ -0,0 +1,2 @@
1
+ <h1>User#show</h1>
2
+ <p>Find me in app/views/user/show.html.erb</p>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run RailsApp::Application
@@ -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