From e13337354d005d0fad1e6288ae98d2893a53e02d Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Sat, 23 Feb 2008 11:12:42 +0000 Subject: [PATCH] preference stuff --- app/controllers/user_preference_controller.rb | 2 ++ app/helpers/user_preference_helper.rb | 2 ++ app/models/notifier.rb | 1 + config/initializers/action_mailer.rb | 6 +++--- db/migrate/011_create_user_preferences.rb | 7 ------- test/fixtures/user_preferences.yml | 7 +++++++ test/functional/user_preference_controller_test.rb | 8 ++++++++ test/unit/user_preference_test.rb | 8 ++++++++ 8 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 app/controllers/user_preference_controller.rb create mode 100644 app/helpers/user_preference_helper.rb delete mode 100644 db/migrate/011_create_user_preferences.rb create mode 100644 test/fixtures/user_preferences.yml create mode 100644 test/functional/user_preference_controller_test.rb create mode 100644 test/unit/user_preference_test.rb diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb new file mode 100644 index 000000000..53db769ef --- /dev/null +++ b/app/controllers/user_preference_controller.rb @@ -0,0 +1,2 @@ +class UserPreferenceController < ApplicationController +end diff --git a/app/helpers/user_preference_helper.rb b/app/helpers/user_preference_helper.rb new file mode 100644 index 000000000..bd7e11bdd --- /dev/null +++ b/app/helpers/user_preference_helper.rb @@ -0,0 +1,2 @@ +module UserPreferenceHelper +end diff --git a/app/models/notifier.rb b/app/models/notifier.rb index f6870a8ad..b9b81a889 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -1,3 +1,4 @@ + class Notifier < ActionMailer::Base def signup_confirm(user, token) recipients user.email diff --git a/config/initializers/action_mailer.rb b/config/initializers/action_mailer.rb index 27030d541..1467b6fe6 100644 --- a/config/initializers/action_mailer.rb +++ b/config/initializers/action_mailer.rb @@ -1,6 +1,6 @@ # Configure ActionMailer ActionMailer::Base.smtp_settings = { - :address => "localhost", - :port => 25, - :domain => 'localhost', + :address => 'localhost', + :port => 25, + :domain => 'localhost', } diff --git a/db/migrate/011_create_user_preferences.rb b/db/migrate/011_create_user_preferences.rb deleted file mode 100644 index 24e07b861..000000000 --- a/db/migrate/011_create_user_preferences.rb +++ /dev/null @@ -1,7 +0,0 @@ -class CreateUserPreferences < ActiveRecord::Migration - def self.up - end - - def self.down - end -end diff --git a/test/fixtures/user_preferences.yml b/test/fixtures/user_preferences.yml new file mode 100644 index 000000000..5bf02933a --- /dev/null +++ b/test/fixtures/user_preferences.yml @@ -0,0 +1,7 @@ +# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html + +# one: +# column: value +# +# two: +# column: value diff --git a/test/functional/user_preference_controller_test.rb b/test/functional/user_preference_controller_test.rb new file mode 100644 index 000000000..7ff64b30e --- /dev/null +++ b/test/functional/user_preference_controller_test.rb @@ -0,0 +1,8 @@ +require File.dirname(__FILE__) + '/../test_helper' + +class UserPreferenceControllerTest < ActionController::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb new file mode 100644 index 000000000..bd4e80015 --- /dev/null +++ b/test/unit/user_preference_test.rb @@ -0,0 +1,8 @@ +require File.dirname(__FILE__) + '/../test_helper' + +class UserPreferenceTest < ActiveSupport::TestCase + # Replace this with your real tests. + def test_truth + assert true + end +end -- 2.43.2