Class: ActionBlocks::RlsBuilder
- Inherits:
-
BlockType
- Object
- BaseBuilder
- BlockType
- ActionBlocks::RlsBuilder
- Defined in:
- lib/action_blocks/builders/authorization_builder.rb
Instance Attribute Summary
Attributes inherited from BaseBuilder
Instance Method Summary collapse
Methods inherited from BlockType
Methods inherited from BaseBuilder
#after_build, #after_load, array_fields, block_type, builds, builds_many, delegate_class, #evaluate, #freeze, includes_scheme_helpers, #initialize, #is_block?, #key, references, sets, sets_many, #ui_reference, #valid?
Constructor Details
This class inherits a constructor from ActionBlocks::BaseBuilder
Instance Method Details
#before_build(parent, role, scheme = nil) ⇒ Object
15 16 17 18 19 |
# File 'lib/action_blocks/builders/authorization_builder.rb', line 15 def before_build(parent, role, scheme=nil) @role = role @id = "#{parent.id}-#{role}" @scheme = scheme end |