Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attribute method should respect local variable names before attempting to invoke the symbol on current_object #23

Open
lafave opened this issue Jun 18, 2012 · 0 comments

Comments

@lafave
Copy link
Contributor

lafave commented Jun 18, 2012

Example

get '/hello' do
  user = User.some_lookup_method(params['id])
  bldr :'template', :locals => {:user => user, :raw_value => rand(10)}
end

# template.bldr
object :user => user do
  attribute :raw_value => raw_value # boom!
end

https://github.com/ajsharp/bldr/blob/master/lib/bldr/node.rb#L166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant