lib/avo/services/panel_service.rb in avo-0.5.0.beta9 vs lib/avo/services/panel_service.rb in avo-0.5.0.beta10
- old
+ new
@@ -9,18 +9,18 @@
@request = request
@params = request.params
end
def default_panel_name
- return @request[:via_relation_param].capitalize if @request[:via_relation_param] == 'has_one'
+ return @request[:via_relation_param].capitalize if @request[:via_relation_param] == "has_one"
case @view
when :show
- I18n.t('avo.resource_details', item: @resource.name.downcase, title: @resource.model_title).upcase_first
+ I18n.t("avo.resource_details", item: @resource.name.downcase, title: @resource.model_title).upcase_first
when :edit
- I18n.t('avo.update_item', item: @resource.name.downcase, title: @resource.model_title).upcase_first
+ I18n.t("avo.update_item", item: @resource.name.downcase, title: @resource.model_title).upcase_first
when :new
- I18n.t('avo.create_new_item', item: @resource.name.downcase).upcase_first
+ I18n.t("avo.create_new_item", item: @resource.name.downcase).upcase_first
end
end
end
end
end