Permalink
Browse files

Proper fix for the selected loading bug (fixes #125)

  • Loading branch information...
Steffen Bartsch
Steffen Bartsch committed Apr 27, 2012
1 parent 183b67e commit 4819d0ca3c23feae84e141e9b2510b265a7c776a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/declarative_authorization/authorization.rb
@@ -280,7 +280,7 @@ def roles_with_hierarchy_for(user)
def self.development_reload?
if Rails.env.development?
- mod_time = AUTH_DSL_FILES.map { |m| File.mtime(m) rescue 0 }.flatten.max
+ mod_time = AUTH_DSL_FILES.map { |m| File.mtime(m) rescue Time.at(0) }.flatten.max
@@auth_dsl_last_modified ||= mod_time
if mod_time > @@auth_dsl_last_modified
@@auth_dsl_last_modified = mod_time

0 comments on commit 4819d0c

Please sign in to comment.