Class: Houston::Extensions::Deprecated::ProjectBannerFeature
- Inherits:
-
Object
- Object
- Houston::Extensions::Deprecated::ProjectBannerFeature
- Defined in:
- lib/houston/boot/extensions/deprecated.rb
Instance Attribute Summary collapse
-
#ability_block ⇒ Object
Returns the value of attribute ability_block.
-
#partial ⇒ Object
Returns the value of attribute partial.
-
#slug ⇒ Object
Returns the value of attribute slug.
Instance Method Summary collapse
Instance Attribute Details
#ability_block ⇒ Object
Returns the value of attribute ability_block.
167 168 169 |
# File 'lib/houston/boot/extensions/deprecated.rb', line 167 def ability_block @ability_block end |
#partial ⇒ Object
Returns the value of attribute partial.
166 167 168 |
# File 'lib/houston/boot/extensions/deprecated.rb', line 166 def partial @partial end |
#slug ⇒ Object
Returns the value of attribute slug.
168 169 170 |
# File 'lib/houston/boot/extensions/deprecated.rb', line 168 def slug @slug end |
Instance Method Details
#permitted?(ability, project) ⇒ Boolean
170 171 172 173 |
# File 'lib/houston/boot/extensions/deprecated.rb', line 170 def permitted?(ability, project) return true if ability_block.nil? ability_block.call ability, project end |