]> git.openstreetmap.org Git - rails.git/commitdiff
preference stuff
authorSteve Coast <steve@asklater.com>
Sat, 23 Feb 2008 11:12:42 +0000 (11:12 +0000)
committerSteve Coast <steve@asklater.com>
Sat, 23 Feb 2008 11:12:42 +0000 (11:12 +0000)
app/controllers/user_preference_controller.rb [new file with mode: 0644]
app/helpers/user_preference_helper.rb [new file with mode: 0644]
app/models/notifier.rb
config/initializers/action_mailer.rb
db/migrate/011_create_user_preferences.rb [deleted file]
test/fixtures/user_preferences.yml [new file with mode: 0644]
test/functional/user_preference_controller_test.rb [new file with mode: 0644]
test/unit/user_preference_test.rb [new file with mode: 0644]

diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb
new file mode 100644 (file)
index 0000000..53db769
--- /dev/null
@@ -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 (file)
index 0000000..bd7e11b
--- /dev/null
@@ -0,0 +1,2 @@
+module UserPreferenceHelper
+end
index f6870a8ad34d6654852fed1b38c5d1e99c361a00..b9b81a8893d53c354538c68b55f249f00270be42 100644 (file)
@@ -1,3 +1,4 @@
+
 class Notifier < ActionMailer::Base
   def signup_confirm(user, token)
     recipients user.email
index 27030d541150e14534520c15f537997bd19e4c6b..1467b6fe66d8dfc9f600feb177d09d683ee7707e 100644 (file)
@@ -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 (file)
index 24e07b8..0000000
+++ /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 (file)
index 0000000..5bf0293
--- /dev/null
@@ -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 (file)
index 0000000..7ff64b3
--- /dev/null
@@ -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 (file)
index 0000000..bd4e800
--- /dev/null
@@ -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