Changeset 1252
- Timestamp:
- 2008-11-13 21:37:06 (2 months ago)
- Files:
-
- trunk/app/controllers/application.rb (modified) (1 diff)
- trunk/lib/core_ext/patcher.rb (modified) (1 diff)
- trunk/lib/parser/lib/rules/zazen.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/application.rb
r1237 r1252 886 886 end 887 887 888 load_models_from_plugins 888 889 load_patches_from_plugins trunk/lib/core_ext/patcher.rb
r1251 r1252 19 19 def load_models_from_plugins 20 20 foreach_plugin do |plugin_path| 21 Dir.foreach(File.join(plugins_path, 'models')) do |model_name| 22 load File.join(plugins_path, 'models', model_name) 21 models_path = File.join(plugin_path, 'models') 22 next unless File.exist?(models_path) 23 Dir.foreach(models_path) do |model_name| 24 next if model_name =~ /\A\./ 25 load File.join(models_path, model_name) 23 26 end 24 27 end trunk/lib/parser/lib/rules/zazen.rb
r1251 r1252 275 275 eat $& 276 276 # [math]....[/math] (we do not use <math> to avoid confusion with mathml) 277 store @helper.make_asset(:asset_tag => $1, :content => $2, :node => @ options[:node], :preview => @context[:preview], :output => @context[:output])277 store @helper.make_asset(:asset_tag => $1, :content => $2, :node => @context[:node], :preview => @context[:preview], :output => @context[:output]) 278 278 end 279 279 else
