Module: SimpleAdminPanel::BreadcrumbHelper

Defined in:
app/helpers/simple_admin_panel/breadcrumb_helper.rb

Instance Method Summary collapse

Instance Method Details

#label_for_resource(resource) ⇒ Object



3
4
5
6
7
# File 'app/helpers/simple_admin_panel/breadcrumb_helper.rb', line 3

def label_for_resource resource
	%w(label name title to_s).each do |attr|
		return resource.public_send attr if resource.respond_to? attr
	end
end