Skip to content

Instantly share code, notes, and snippets.

@jgaskins
Created February 26, 2012 06:43
Show Gist options
  • Save jgaskins/1914489 to your computer and use it in GitHub Desktop.
Save jgaskins/1914489 to your computer and use it in GitHub Desktop.
Perpetuity ActiveModel wrapper class
class ArticlesController < ApplicationController
def edit
@article = ArticleMapper.find(params[:id])
@article_model = Perpetuity::ActiveModel.new(article)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment