Class: Houston::Extensions::Deprecated::ProjectBannerFeature

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions/deprecated.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ability_blockObject

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

#partialObject

Returns the value of attribute partial.



166
167
168
# File 'lib/houston/boot/extensions/deprecated.rb', line 166

def partial
  @partial
end

#slugObject

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

Returns:

  • (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