To edit pages or tickets please login with username/password: aaf/aaf

Ticket #172 (assigned defect)

Opened 1 year ago

Last modified 1 year ago

Model.disable_ferret in environment.rb does not work in development mode

Reported by: jk Assigned to: jk (accepted)
Priority: minor Milestone: 0.5
Component: 0plugin Version:
Keywords: Cc:

Description

the reason is automatic model class reloading, which lets aaf forget about being disabled. Maybe introduce a config mechanism like rails has, and let aaf read the status of the disabled flag from there.

Workaround for the time being: add a before_filter that's only active in dev env to call disable_ferret before every request:

before_filter :disable_ferret if RAILS_ENV == 'development'

def disable_ferret
  MyModel.disable_ferret
end

Change History

09/12/07 19:41:34 changed by jk

  • status changed from new to assigned.
  • summary changed from Model.disable_ferret in environment.rb does not workl in development mode to Model.disable_ferret in environment.rb does not work in development mode.

To edit pages or tickets please login with username/password: aaf/aaf