Sha256: 865e37b94731f1e216fe3b93b41e03121989a0100674d0bf8c952915876b02f7
Contents?: true
Size: 542 Bytes
Versions: 12
Compression:
Stored size: 542 Bytes
Contents
object @template attributes :id, :snippet, :locked node(:kind) do |template| template.template_kind.name if template.respond_to?(:template_kind) && template.template_kind end node(:class_name) do |template| template.class.name end node(:humanized_class_name) do |template| template.class.name.underscore.split('_').map { |part| part.capitalize }.join(' ') end node(:can_edit) do |template| authorized_for(:auth_object => template, :authorizer => authorizer, :permission => "edit_#{template.class.name.underscore.pluralize}") end
Version data entries
12 entries across 12 versions & 1 rubygems