Skip to content

Commit

Permalink
Rename class Config due to restricted name
Browse files Browse the repository at this point in the history
  • Loading branch information
fareesh committed May 3, 2013
1 parent adf419a commit a312060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions welcome.rb
Expand Up @@ -99,7 +99,7 @@ class Message
field :send_at, :type => Array, :default => []
end

class Config
class Zconfig
include Mongoid::Document
field :value
field :name
Expand All @@ -122,7 +122,7 @@ def nl2br(s)
end

get '/config' do
settings = Config.all
settings = Zconfig.all
haml :config, :locals => {:settings => settings}
end

Expand Down

0 comments on commit a312060

Please sign in to comment.