Skip to content

Instantly share code, notes, and snippets.

@joemsak
Created March 17, 2012 17:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/2063416 to your computer and use it in GitHub Desktop.
Save joemsak/2063416 to your computer and use it in GitHub Desktop.
Spec No-Rails: RefineryCMS Engine Helper
require 'active_record'
require 'friendly_id'
db = YAML.load(File.open('config/database.yml'))
ActiveRecord::Base.establish_connection(db['test'])
module Refinery
module Core
class BaseModel < ActiveRecord::Base
self.abstract_class = true
end
end
end
def acts_as_indexed(*args)
end
def acts_as_taggable(*args)
end
def translates(*args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment