Changeset 295

Show
Ignore:
Timestamp:
03/01/06 13:31:58 (3 years ago)
Author:
lazyatom
Message:

Misc application updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • applications/login_engine/config/environment.rb

    r248 r295  
    3737  # Use Active Record's schema dumper instead of SQL when creating the test database 
    3838  # (enables use of different database adapters for development and test environments) 
    39   # config.active_record.schema_format = :ruby 
     39  config.active_record.schema_format = :ruby 
    4040 
    4141  # See Rails::Configuration for more options 
     42   
     43  config.active_record.table_name_prefix = "james_" 
    4244end 
    4345 
  • applications/user_engine/app/controllers/application.rb

    r200 r295  
    22# Likewise, all the methods added will be available for all controllers. 
    33require 'login_engine' 
     4require 'user_engine' 
    45 
    56class ApplicationController < ActionController::Base 
    67  include LoginEngine 
     8  include UserEngine 
    79  helper :user 
    810  model :user 
    911   
    10   before_filter :login_required 
     12  before_filter :authorize_action 
    1113end 
  • applications/user_engine/app/helpers/application_helper.rb

    r200 r295  
    22module ApplicationHelper 
    33  include LoginEngine 
     4  include UserEngine 
    45end 
  • applications/user_engine/config/database.example.yml

    r198 r295  
    88development: 
    99  adapter: mysql 
    10   database: login_engine_development 
     10  database: user_engine_development 
    1111  username: root 
    1212  password: 
     
    2323test: 
    2424  adapter: mysql 
    25   database: login_engine_test 
     25  database: user_engine_test 
    2626  username: root 
    2727  password: 
     
    3030production: 
    3131  adapter: mysql 
    32   database: login_engine_production 
     32  database: user_engine_production 
    3333  username: root 
    3434  password:  
     
    4444postgresql_example: 
    4545  adapter: postgresql 
    46   database: login_engine_development 
    47   username: login_engine 
     46  database: user_engine_development 
     47  username: user_engine 
    4848  password: 
    4949 
  • applications/user_engine/config/environment.rb

    r248 r295  
    3737  # Use Active Record's schema dumper instead of SQL when creating the test database 
    3838  # (enables use of different database adapters for development and test environments) 
    39   # config.active_record.schema_format = :ruby 
     39  config.active_record.schema_format = :ruby 
    4040 
     41  config.active_record.table_name_prefix = "blah_" 
    4142  # See Rails::Configuration for more options 
    4243end 
     
    5657  config :salt, "your-salt-here" 
    5758  config :use_email_notification, false 
    58   config :default_home, :controller => 'user', :action => 'hello' 
     59  config :default_home, {:controller => 'user', :action => 'hello'} 
     60end 
     61 
     62module UserEngine 
     63  config :admin_email, 'james@lazyatom.com' 
    5964end 
    6065 
    6166#Engines.set_logger(RAILS_DEFAULT_LOGGER) 
    6267 
    63 Engines.start :login 
     68Engines.start :login, :user 
  • applications/user_engine/vendor/plugins

    • Property svn:externals changed from
      engines http://svn.rails-engines.org/engines/branches/rb_1.0
      login_engine http://svn.rails-engines.org/login_engine/branches/rb_1.0
      to
      engines http://svn.rails-engines.org/engines/branches/rb_1.0
      login_engine http://svn.rails-engines.org/login_engine/branches/rb_1.0
      user_engine http://svn.rails-engines.org/user_engine/branches/rb_1.0