Merge pull request #35 from tute/master

Requiring generic model code
This commit is contained in:
John McAliley 2012-03-15 06:17:05 -07:00
commit f15cf55248
4 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ require "rails"
module Impressionist module Impressionist
class Engine < Rails::Engine class Engine < Rails::Engine
initializer 'impressionist.model' do |app| initializer 'impressionist.model' do |app|
require "../app/models/impressionist/impressionable.rb"
if Impressionist.orm == :active_record if Impressionist.orm == :active_record
require "impressionist/models/active_record/impression.rb" require "impressionist/models/active_record/impression.rb"
require "impressionist/models/active_record/impressionist/impressionable.rb" require "impressionist/models/active_record/impressionist/impressionable.rb"

View File

@ -12,6 +12,5 @@ class Impression
key :session_hash, String key :session_hash, String
key :message, String key :message, String
key :referrer, String key :referrer, String
timestamps! timestamps!
end end

View File

@ -11,6 +11,7 @@ platforms :jruby do
end end
platforms :ruby, :mswin, :mingw do platforms :ruby, :mswin, :mingw do
gem 'pg'
gem 'sqlite3' gem 'sqlite3'
end end

View File

@ -9,5 +9,4 @@ class WidgetsController < ApplicationController
def new def new
end end
end end