require 'rails_connector/basic_obj' module RailsConnector class BasicObj def scrivito_obj Scrivito::Obj.find(self.id) end end end