Permalink
Browse files

Fixed syntax error

  • Loading branch information...
1 parent a589055 commit 14f9658c7b6e825e610ae93c7ddf24f146f020d8 @ledermann committed Mar 7, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/app/models/setting_object.rb
@@ -6,8 +6,7 @@ class SettingObject < ActiveRecord::Base
validates_presence_of :var, :value, :target_type
validate do
- unless _target_class
-.default_settings[var.to_sym]
+ unless _target_class.default_settings[var.to_sym]
errors.add(:var, "#{var} is not defined!")
end
end

0 comments on commit 14f9658

Please sign in to comment.