benglerpebbles/petroglyph — Issue #5: Sinatra method gets called instead of scoped variable
Author: bjoerge
Created: 2011-12-19 15:22:53+00:00
State: open

The following will fail because petroglyph will invoke the post method on Sinatra::Base instead of referencing the local variable

Sinatra class:

```ruby
get "/post/:uid" do
#( find post, e
pg :post, :locals => {:post => @post}
end
```

...and in post.pg:

```ruby
node :post => post do
attributes :created_at
end
```