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

Add direct reader to assigns value #13

Merged
merged 4 commits into from
Jun 12, 2014
Merged

Add direct reader to assigns value #13

merged 4 commits into from
Jun 12, 2014

Conversation

moro
Copy link
Contributor

@moro moro commented Jun 12, 2014

match slug('products#show') do
  assign_reader :product
  title { product.name }
end

adds product method to access assigns(:product).

@hrysd
Copy link
Contributor

hrysd commented Jun 12, 2014

COOL

hrysd added a commit that referenced this pull request Jun 12, 2014
Add direct reader to `assigns` value
@hrysd hrysd merged commit 1a132d0 into master Jun 12, 2014
@hrysd hrysd deleted the ivar-alias branch June 12, 2014 10:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants