Skip to content

Commit

Permalink
Don't use Symbol#to_proc in initializer because ActiveSupport hasn't …
Browse files Browse the repository at this point in the history
…loaded yet.
  • Loading branch information
jgarber committed Aug 22, 2009
1 parent 0ea5202 commit 4b817a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/radiant/initializer.rb
Expand Up @@ -37,7 +37,7 @@ def extensions
def all_available_extensions
extension_paths.map do |path|
Dir["#{path}/*"].select {|f| File.directory?(f) }
end.flatten.map {|f| File.basename(f).sub(/^\d+_/, '') }.sort.map(&:to_sym)
end.flatten.map {|f| File.basename(f).sub(/^\d+_/, '') }.sort.map {|e| e.to_sym }
end

def admin
Expand Down

0 comments on commit 4b817a8

Please sign in to comment.