Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use class_attribute as the priority over class_inheritable_accesssor

  • Loading branch information...
commit 58a91b5085bd68aca4ed1ba5c5235f1066bb4ee2 1 parent 88c5552
@adzap adzap authored committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/formtastic.rb
View
6 lib/formtastic.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.