Sha256: c42fb44c85c977bfeeb0fb95e47f2e71d9ff197b7cef0d2f25dc30211d217ad4
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
require 'active_record' require 'action_controller/railtie' # config ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') module ErdApp class Application < Rails::Application # Rais.root config.root = File.dirname(__FILE__) config.secret_token = 'fall to your knees and repent if you please' config.session_store :cookie_store, :key => '_myapp_session' config.active_support.deprecation = :log config.app_generators.orm :active_record, :migration => true, :timestamps => true end end ErdApp::Application.initialize! # models class Author < ActiveRecord::Base has_many :books end class Book < ActiveRecord::Base belongs_to :author end # helpers module ApplicationHelper; end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
erd-0.1.6 | spec/fake_app/fake_app.rb |
erd-0.1.5 | spec/fake_app/fake_app.rb |
erd-0.1.4 | spec/fake_app/fake_app.rb |
erd-0.1.3 | spec/fake_app/fake_app.rb |