Skip to content

Commit

Permalink
Bump to 0.9.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 25, 2010
1 parent b4707c2 commit ca79477
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rdoc
@@ -1,3 +1,9 @@
== 0.9.1

* bug fix
* Allow bigger salt size (by github.com/jgeiger)
* Fix relative url root

== 0.9.0

* deprecation
Expand Down
8 changes: 2 additions & 6 deletions lib/devise/mapping.rb
Expand Up @@ -92,15 +92,12 @@ def as_position
self.path_prefix.count("/")
end

# Returns the raw path using the current relative_url_root, path_prefix and as.
# Returns the raw path using path_prefix and as.
def raw_path
path_prefix + as.to_s
end

# Returns the parsed path. If you need meta information in your path_prefix,
# you should overwrite this method to use it. The only information supported
# by default is I18n.locale.
#
# Returns the parsed path taking into account the relative url root and raw path.
def parsed_path
returning (ActionController::Base.relative_url_root.to_s + raw_path) do |path|
self.class.default_url_options.each do |key, value|
Expand All @@ -109,7 +106,6 @@ def parsed_path
end
end


# Create magic predicates for verifying what module is activated by this map.
# Example:
#
Expand Down
4 changes: 2 additions & 2 deletions lib/devise/schema.rb
Expand Up @@ -12,9 +12,9 @@ def authenticatable(options={})
null = options[:null] || false
encryptor = options[:encryptor] || (respond_to?(:encryptor) ? self.encryptor : :sha1)

apply_schema :email, String, :null => null, :limit => 100
apply_schema :email, String, :null => null
apply_schema :encrypted_password, String, :null => null, :limit => Devise::ENCRYPTORS_LENGTH[encryptor]
apply_schema :password_salt, String, :null => null, :limit => 30
apply_schema :password_salt, String, :null => null
end

# Creates confirmation_token, confirmed_at and confirmation_sent_at.
Expand Down
2 changes: 1 addition & 1 deletion lib/devise/version.rb
@@ -1,3 +1,3 @@
module Devise
VERSION = "0.9.0".freeze
VERSION = "0.9.1".freeze
end

0 comments on commit ca79477

Please sign in to comment.