commit
f15cf55248
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,4 @@ class WidgetsController < ApplicationController
|
||||||
|
|
||||||
def new
|
def new
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue