No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead of alexcharlie:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README
init.rb

README

A plugin expressly made for the purposes of being evil with view rendering.

Makes it easy to render views for when you do things on facebook API like sending notifications in an after_save.

class User < ActiveRecord::Base

  include EvilActionView
  after_save :notify_user

  def notify_user
    send_notification(evil.render :partial => "user_notification", :locals => self.attributes)
  end
end


Also, I added a janky part controller thing.  It works, but its not very good right now