Permalink
Browse files

we can just use a mattr_accessor here, right?

  • Loading branch information...
justinfrench committed Sep 6, 2009
1 parent 51bbaf9 commit 85d73971eab41a0ebe439a894665a2eaa0f140eb
Showing with 1 addition and 9 deletions.
  1. +1 −9 lib/formtastic.rb
View
@@ -1280,15 +1280,7 @@ def localized_attribute_string(attr_name, attr_value, i18n_key)
#
module SemanticFormHelper
@@builder = Formtastic::SemanticFormBuilder
-
- # cattr_accessor :builder
- def self.builder=(val)
- @@builder = val
- end
-
- def self.builder
- @@builder
- end
+ mattr_accessor :builder
[:form_for, :fields_for, :form_remote_for, :remote_form_for].each do |meth|
src = <<-END_SRC

0 comments on commit 85d7397

Please sign in to comment.