lib/trestle/scopes/scope.rb in trestle-0.9.3 vs lib/trestle/scopes/scope.rb in trestle-0.9.4
- old
+ new
@@ -10,10 +10,10 @@
def to_param
name
end
def label
- @options[:label] || I18n.t("admin.scopes.#{name}", default: name.to_s.humanize.titleize)
+ @options[:label] || @admin.t("scopes.#{name}", default: name.to_s.humanize.titleize)
end
def default?
@options[:default] == true
end