This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :assets do | |
task :precompile, :roles => :web, :except => { :no_release => true } do | |
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} asset_paths} | |
num_paths = capture("cat #{latest_release}/tmp/asset_paths").to_i | |
run %Q{rm #{latest_release}/tmp/asset_paths} | |
if num_paths == 0 # 0 means, there are no gems with asset paths | |
from = source.next_revision(current_revision) | |
if capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i > 0 | |
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def current_order(create_order_if_necessary = false) | |
return @current_order if @current_order | |
if session[:order_id] | |
current_order = Spree::Order.find_by_id(session[:order_id], :include => :adjustments) | |
@current_order = current_order unless current_order.try(:completed?) | |
end | |
if create_order_if_necessary and (@current_order.nil? or @current_order.completed?) | |
@current_order = Spree::Order.new | |
before_save_new_order | |
@current_order.save! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-05-28 13:48:01,027 WARN info.magnolia.event.SimpleEventBus : Exception caught when dispatching a class info.magnolia.ui.api.location.LocationChangedEvent event with class info.magnolia.ui.framework.app.AppControllerImpl eventHandler. | |
java.lang.ClassCastException: $java.util.LinkedHashMap$$EnhancerByCGLIB$$aae8cdca cannot be cast to info.magnolia.cms.beans.config.URI2RepositoryManager | |
at info.magnolia.link.AbsolutePathTransformer.getURI2RepositoryManager(AbsolutePathTransformer.java:92) | |
at info.magnolia.link.AbsolutePathTransformer.transform(AbsolutePathTransformer.java:78) | |
at info.magnolia.link.LinkUtil.createAbsoluteLink(LinkUtil.java:357) | |
at info.magnolia.ui.framework.i18n.DefaultI18NAuthoringSupport.createI18NURI(DefaultI18NAuthoringSupport.java:128) | |
at info.magnolia.ui.framework.i18n.DefaultI18NAuthoringSupport$$EnhancerByCGLIB$$c7832058.createI18NURI(<generated>) | |
at info.magnolia.pages.app.editor.PagesEditorSubApp.setPageEditorParameters(PagesEditorSubApp.java:280) | |
at info.mag |