app/models/faalis/permission.rb in faalis-1.0.0 vs app/models/faalis/permission.rb in faalis-2.0.0.rc2
- old
+ new
@@ -25,10 +25,11 @@
alias_attribute :action, :permission_type
#alias_method :action, :permission_type
def to_s
- _("can %s %s") % [_(self.permission_type.to_s), self.model.underscore.humanize]
+ t('permission_string', action: t(self.permission_type.to_s),
+ model: t(self.model.underscore.humanize))
end
def id_repr
"#{self.permission_type.to_s}|#{self.model}"
end