lib/generators/phlex/table/templates/table.rb.erb in phlex-0.4.0 vs lib/generators/phlex/table/templates/table.rb.erb in phlex-0.5.0
- old
+ new
@@ -1,8 +1,10 @@
<% module_namespacing do -%>
module Views
- class <%= class_name %> < ApplicationView
+ class <%= class_name %> < Phlex::HTML
+ include ApplicationView
include Phlex::Table
+
<% options["properties"].each do |property| %>
property "<%= property.humanize %>", &:<%= property.underscore %><% end %>
end
end
<% end %>