This script will install ruby-debug19
under your current Ruby 1.9.3
environment.
- rbenv
diff --git a/core/lib/refinery/extension_generation.rb b/core/lib/refinery/extension_generation.rb | |
index 1a44565..6e9c83f 100644 | |
--- a/core/lib/refinery/extension_generation.rb | |
+++ b/core/lib/refinery/extension_generation.rb | |
@@ -180,9 +180,7 @@ module Refinery | |
end | |
def exit_with_message!(message) | |
- puts "" | |
- puts message |
# app/decorators/models/refinery/page_decorator.rb | |
Refinery::Page.class_eval do | |
def my_method | |
end | |
end |
# Engine - Refinery::Cars::Cars | |
Rails.application.routes.draw do | |
root :to => "refinery/cars/cars#index" | |
mount Refinery::Core::Engine, :at => "/" | |
end |
/* Default error colouring */ | |
/* line 3, ../../../../../core/app/assets/stylesheets/refinery/formatting.css.scss */ | |
article, nav, header, footer, aside, hgroup, section { | |
display: block; | |
} | |
/* line 7, ../../../../../core/app/assets/stylesheets/refinery/formatting.css.scss */ | |
div.fieldWithErrors { | |
display: inline; | |
} |
diff --git a/core/app/assets/javascripts/refinery/boot_wym.js.erb b/core/app/assets/javascripts/refinery/boot_wym.js.erb | |
index 6e79eba..f712ff6 100644 | |
--- a/core/app/assets/javascripts/refinery/boot_wym.js.erb | |
+++ b/core/app/assets/javascripts/refinery/boot_wym.js.erb | |
@@ -158,7 +158,7 @@ var wymeditor_boot_options = $.extend({ | |
+ "</form>" | |
+ "</div>" | |
- , dialogPath: "<%= Refinery::Core::Engine.routes.url_helpers.root_path %>refinery/dialogs/" | |
+ , dialogPath: "<%= Refinery::Core::Engine.routes.url_helpers.admin_dialogs_path %>/" |
5.times do | |
sleep 1 | |
if Time.now.to_i.even? | |
x = [1,2,3].inject([]) do |arr, i| | |
arr << i | |
end | |
end | |
puts x.inspect |
Refinery::Core::Engine.routes.draw do | |
# frontend | |
namespace :blog do | |
root :to => "posts#index" | |
resources :posts | |
end | |
# backend | |
namespace :blog, :path => "" do |
# Refinery CMS Core RSpec specs converted to MiniTest::Spec | |
# spec/minitest_helper.rb | |
require "minitest/spec" | |
require "minitest/autorun" | |
require "mocha" | |
ENV["RAILS_ENV"] = "test" | |
require File.expand_path("../dummy/config/environment", __FILE__) |
def self.search_filter(name,manufacture_id,product_type_id) | |
f_manufacture_id = manufacture_id | |
f_manufacture_id = f_manufacture_id.join(', ') unless manufacture_id.nil? | |
result = order("id DESC") | |
result = result.where("name LIKE ?", "%#{name}%") unless name.empty? | |
result = result.where("manufacture_id IN (?)", f_manufacture_id) unless manufacture_id.nil? | |
result = result.where(:product_type_id => product_type_id) unless product_type_id.blank? | |
result |