lib/rubyrun/rubyrun_rss__.rb in rubyrun-0.9.9.1 vs lib/rubyrun/rubyrun_rss__.rb in rubyrun-0.9.9.2
- old
+ new
@@ -36,10 +36,10 @@
@title = title
@description = description
@directory = directory
@rss_filename = rss_filename
@html_filename = html_filename
- @apps_name = Rails::Configuration.new.root_path.split('/').last
+ @apps_name = $j2ee ? Rails::Configuration.new.root_path.split('/')[-2] : Rails::Configuration.new.root_path.split('/').last
@rss_xml_destination = "#{@directory}/#{@rss_filename}"
create_channel_content unless File::exists?(@rss_xml_destination)
end
# Create the RSS channel
\ No newline at end of file