Skip to content

Commit

Permalink
Refactored loading optional libs within rich_cms.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Engel committed Feb 13, 2011
1 parent 6432af2 commit 0e6179b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/rich_cms.rb
@@ -1,14 +1,11 @@
require "jzip"
require "haml"

begin
require "authlogic"
rescue LoadError
end
begin
require "devise"
require "devise/version"
rescue LoadError
%w(authlogic devise devise/version).each do |lib|
begin
require lib
rescue LoadError
end
end

require "rich/cms/core"
Expand Down

0 comments on commit 0e6179b

Please sign in to comment.