Skip to content

Commit

Permalink
:static rows are now subclasses of StringRow
Browse files Browse the repository at this point in the history
this means they also have access to :placeholder and :value
  • Loading branch information
clayallsopp committed Nov 8, 2012
1 parent cd999d1 commit 7b06bac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/formotion/row_type/static_row.rb
Original file line number Diff line number Diff line change
@@ -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.