lib/para/form_builder/nested_form.rb in para-0.5.1 vs lib/para/form_builder/nested_form.rb in para-0.5.3
- old
+ new
@@ -37,11 +37,11 @@
template.content_tag(:div, class: 'panel-btns pull-right') do
template.link_to_remove_association(
self, wrapper_class: 'form-fields', class: 'btn btn-danger'
) do
template.content_tag(:i, '', class: 'fa fa-trash') +
- I18n.t('para.form.nested.remove')
+ ::I18n.t('para.form.nested.remove')
end
end
end
def allow_destroy?
@@ -73,10 +73,10 @@
private
def default_resource_name
model_name = object.class.model_name.human
- id_or_new = (id = object.id) ? id : I18n.t('para.form.nested.new')
+ id_or_new = (id = object.id) ? id : ::I18n.t('para.form.nested.new')
[model_name, id_or_new].join(' - ')
end
end
end