Class: Houston::Extensions::ProjectBannerFeature
- Inherits:
-
Object
- Object
- Houston::Extensions::ProjectBannerFeature
- Defined in:
- lib/houston/boot/extensions.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.
255 256 257 |
# File 'lib/houston/boot/extensions.rb', line 255 def ability_block @ability_block end |
#partial ⇒ Object
Returns the value of attribute partial.
254 255 256 |
# File 'lib/houston/boot/extensions.rb', line 254 def partial @partial end |
#slug ⇒ Object
Returns the value of attribute slug.
256 257 258 |
# File 'lib/houston/boot/extensions.rb', line 256 def slug @slug end |
Instance Method Details
#permitted?(ability, project) ⇒ Boolean
258 259 260 261 |
# File 'lib/houston/boot/extensions.rb', line 258 def permitted?(ability, project) return true if ability_block.nil? ability_block.call ability, project end |