Permalink
Browse files

:static rows are now subclasses of StringRow

this means they also have access to :placeholder and :value
  • Loading branch information...
1 parent cd999d1 commit 7b06bac6798d96340276907fec0cd130f7eeb575 @clayallsopp committed Nov 8, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/formotion/row_type/static_row.rb
@@ -1,6 +1,9 @@
module Formotion
module RowType
- class StaticRow < Base
+ class StaticRow < StringRow
+ def after_build(cell)
+ self.row.text_field.enabled = false
+ end
end
end
end

0 comments on commit 7b06bac

Please sign in to comment.