I've noticed some calls to hook like in admin order index.
<%- locals = {:order => order} -%>
<% hook :admin_orders_index_rows, locals do %>
<td><%= order.created_at.to_date%></td>
<td><%= link_to order.number, object_url(order) %></td>
<td><%= t(order.state.downcase) %></td>
<td><%= order.email %></td>
<td><%= number_to_currency order.total %></td>
<% end %>
Do I have access to the local passed in my_extension_hooks so I can do
some checks on it before I actually display the content?
Thanks
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
No comments:
Post a Comment