dinedine 2010-06-04 01:53:59 +02:00
parent 3d22ef4d1c
commit 9b87be4637
4 changed files with 42 additions and 3 deletions

View File

@ -12,7 +12,7 @@ gem "mongoid_acts_as_tree", ">= 0.1.2"
gem "warden"
gem "devise", ">= 1.1.rc0"
gem "haml", '>= 3.0.1'
gem "rmagick"
# gem "rmagick"
gem "aws"
gem "jeweler"
gem "mimetype-fu", :require => "mimetype_fu"

View File

@ -1 +1 @@
0.0.1
0.0.1.2

View File

@ -30,4 +30,16 @@ Locomotive::Application.configure do
# Enable threaded mode
# config.threadsafe!
end
end
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "nocoffee.fr",
:authentication => :plain,
:user_name => "didier@nocoffee.fr",
:password => "pepscou"
}

View File

@ -1,5 +1,32 @@
require 'devise'
## patches ##
module Devise
module Models
class << self
def hook(base)
if base.is_a?(Module)
base.class_eval do
attr_accessor :devise_modules
def devise_modules
@devise_modules ||= []
end
end
else
base.class_eval do
class_attribute :devise_modules, :instance_writer => false
self.devise_modules ||= []
end
end
end
alias :included :hook
alias :extended :hook
end
end
end
# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise.setup do |config|