Permalink
Browse files

use class_attribute as the priority over class_inheritable_accesssor

  • Loading branch information...
1 parent 88c5552 commit 58a91b5085bd68aca4ed1ba5c5235f1066bb4ee2 @adzap adzap committed with Dec 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/formtastic.rb
View
@@ -14,10 +14,10 @@ class SemanticFormBuilder < ActionView::Helpers::FormBuilder
:default_commit_button_accesskey, :default_inline_error_class, :default_hint_class, :default_error_list_class
]
- if defined?(:class_inheritable_attribute)
- class_inheritable_accessor *configurables
- else
+ if respond_to?(:class_attribute)
class_attribute *configurables
+ else
+ class_inheritable_accessor *configurables
end
cattr_accessor :custom_namespace

0 comments on commit 58a91b5

Please sign in to comment.