Sha256: 3c5842a067be628976a4a5505ec3c3af17b4e05ac82321232ac2c0a161a71eb5

Contents?: true

Size: 376 Bytes

Versions: 22

Compression:

Stored size: 376 Bytes

Contents

You can configure your own Ability factory.

```ruby

class MyCustomAbility < CanTango::Ability
  def initialize name, options = {}
    # super
    # custom logic
  end
end

Cantango.configure.ability do |ability|
  ability.factory Proc.new{|name, options| MyCustomAbility.new name, options }
end
```

This feature is currently also used for performance testing of Cantango!

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 wiki/config/ability.markdown
cantango-0.9.4.6 wiki/config/ability.markdown
cantango-0.9.4.5 wiki/config/ability.markdown
cantango-0.9.4.3 wiki/config/ability.markdown
cantango-0.9.4.2 wiki/config/ability.markdown
cantango-0.9.4.1 wiki/config/ability.markdown
cantango-0.9.4 wiki/config/ability.markdown
cantango-0.9.3.2 wiki/config/ability.markdown
cantango-0.8.9.5 wiki/config/ability.markdown
cantango-0.8.9.4 wiki/config/ability.markdown
cantango-0.8.9.3 wiki/config/ability.markdown
cantango-0.8.9.2 wiki/config/ability.markdown
cantango-0.8.9.1 wiki/config/ability.markdown
cantango-0.8.9 wiki/config/ability.markdown
cantango-0.8.8.1 wiki/config/ability.markdown
cantango-0.8.8 wiki/config/ability.markdown
cantango-0.8.7 wiki/config/ability.markdown
cantango-0.8.6.2 wiki/config/ability.markdown
cantango-0.8.6.1 wiki/config/ability.markdown
cantango-0.8.6 wiki/config/ability.markdown