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

Can use view note on rails 3.2.x ~ 4.x #129

Merged
merged 6 commits into from
Apr 25, 2015

Conversation

kyuden
Copy link
Contributor

@kyuden kyuden commented Apr 25, 2015

View note doesn't work on rails 3.2.x ~ 4.x.
Concretely, In Rails2 the current view is stored in the controller in an instance variable named @template. But It is different in rails 3.2.x and 4.x. So, I fixed it with ActiveSupport::Notifications.

https://github.com/josevalim/rails-footnotes/pull/129/files#diff-4b7f440bebee87d9a63a043f54f49b1dL6

in addition, I added total time of view in view note.

1800__murakumo__1800

@kyuden kyuden changed the title Can use view note on rails 3.2.x and 4.x Can use view note on rails 3.2.x ~ 4.x Apr 25, 2015
Intrepidd added a commit that referenced this pull request Apr 25, 2015
Fix  view note on rails 3.2.x ~ 4.x
@Intrepidd Intrepidd merged commit 74c7b73 into indirect:master Apr 25, 2015
@Intrepidd
Copy link
Collaborator

Thank You !

@raybaxter
Copy link

Awesome. Thank you!

@kyuden kyuden deleted the can_use_view_note branch April 26, 2015 05:46
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

3 participants