yet another fix
This commit is contained in:
parent
7d43b998c5
commit
52b51c972d
|
@ -73,7 +73,8 @@ module SemanticRailsViewHelpers
|
||||||
end
|
end
|
||||||
|
|
||||||
output = { 'data-type' => type }
|
output = { 'data-type' => type }
|
||||||
if !object.new_record?
|
|
||||||
|
if object.respond_to?(:id)
|
||||||
output['data-id'] = object.id
|
output['data-id'] = object.id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue