Class: Bike::Workflow::Attachment
- Inherits:
-
Bike::Workflow
- Object
- Bike::Workflow
- Bike::Workflow::Attachment
- Defined in:
- lib/_workflow/attachment.rb
Overview
- Author
-
Akira FUNAI
- Copyright
-
Copyright © 2009 Akira FUNAI
Defined Under Namespace
Modules: SD
Constant Summary collapse
- DEFAULT_META =
{ :p_size => 0, :item_label => Bike::I18n.n_('attachment', 'attachments', 1), }
- PERM =
{ :create => 0b00000, :read => 0b00000, :update => 0b00000, :delete => 0b00000, }
Constants inherited from Bike::Workflow
DEFAULT_SUB_ITEMS, ROLE_ADMIN, ROLE_GROUP, ROLE_NONE, ROLE_OWNER, ROLE_USER
Instance Attribute Summary
Attributes inherited from Bike::Workflow
Instance Method Summary collapse
Methods inherited from Bike::Workflow
#call, #default_meta, #default_sub_items, #get, #initialize, instance, #post, roles, #sd_module
Methods included from I18n
_, bindtextdomain, domain, domain=, find_msg, lang, lang=, merge_msg!, msg, n_, parse_msg, po_dir, po_dir=
Constructor Details
This class inherits a constructor from Bike::Workflow
Instance Method Details
#permit?(roles, action) ⇒ Boolean
53 54 55 56 |
# File 'lib/_workflow/attachment.rb', line 53 def permit?(roles, action) (action == :login) || (@f[:parent] && @f[:parent].permit?(action)) end |