yet another fix

This commit is contained in:
John Bintz 2012-12-23 13:36:13 -05:00
parent 7d43b998c5
commit 52b51c972d
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ module SemanticRailsViewHelpers
end
output = { 'data-type' => type }
if !object.new_record?
if object.respond_to?(:id)
output['data-id'] = object.id
end