Permalink
Browse files

Merged pull request #66 from oruen/rails3.

Ckeditor.file_model and Ruby 1.9
  • Loading branch information...
2 parents 3ab7579 + 384c885 commit 4933f14826262a3b31480692a9cad5e4512eef25 @galetahub committed Apr 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ckeditor.rb
View
@@ -73,7 +73,7 @@ def self.file_manager_image_model=(class_name)
# Get the file class from the file reference object.
def self.file_model
- if self.class_variables.include?('@@file_model_ref')
+ if self.class_variable_defined?('@@file_model_ref')
@@file_model_ref.get
else
self.file_manager_file_model = "Ckeditor::AttachmentFile"

0 comments on commit 4933f14

Please sign in to comment.