[Radiant] behaviors work only partialy in production
John W. Long
ng at johnwlong.com
Mon Jul 3 20:32:07 CDT 2006
dror tirosh wrote:
> While working perfectly in development I have a problem with a few of the
> behaviors in production.
> Mainly the page missing and the mailer ones.
What kind of problem are you having with the page missing behavior? Are
you using 0.5? Gem or Subversion checkout?
> I tend to think not all behaviors are loaded, any reason for that happening
> only in production?
None that I can think of. Behaviors are required from environment.rb:
# Auto-require behaviors
Dir["#{RADIANT_ROOT}/app/behaviors/*_behavior.rb"].each do |behavior|
require_dependency behavior
end
So there is no distinction between how they are loaded in production and
development modes.
--
John Long
http://wiseheartdesign.com
More information about the Radiant
mailing list