remiprev/her — pull request #24 by thomsbg (2012-08-10 17:10:53+00:00)
Title: Automatically inherit her_api from a superclass

Without this, subclasses of a class mixing-in `Her::Model` will not have a `@her_api`, and won't be able to make requests.

Before:

```ruby
$foo_api = Her::API.new

class Foo
include Her::Model
uses_api $foo_api
end

Foo.instance_eval { @her_api } # => $foo_api

class Bar < Foo
end

Bar.instance_eval { @her_api } # => nil
```

After:
```ruby
$foo_api = Her::API.new

class Foo
include Her::Model
uses_api $foo_api
end

Foo.her_api # => $foo_api

class Bar < Foo
end

Bar.her_api # => $foo_api

$bar_api = Her::API.new
Bar.uses_api $bar_api
Bar.her_api # => $bar_api
Foo.her_api # => $foo_api
```