This script will install ruby-debug19
under your current Ruby 1.9.3
environment.
- rbenv
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 |
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 %>/" |
/* 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; | |
} |
# Engine - Refinery::Cars::Cars | |
Rails.application.routes.draw do | |
root :to => "refinery/cars/cars#index" | |
mount Refinery::Core::Engine, :at => "/" | |
end |
# app/decorators/models/refinery/page_decorator.rb | |
Refinery::Page.class_eval do | |
def my_method | |
end | |
end |
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/models/refinery/page.rb | |
# ... code ... | |
def url | |
@url ||= Refinery::Pages::Url.build(self) | |
end | |
def uncached_nested_url | |
[parent.try(:uncached_nested_url), to_param.to_s].compact.flatten |
diff --git a/core/lib/refinery/plugins.rb b/core/lib/refinery/plugins.rb | |
index a22497f..1d8e4ee 100644 | |
--- a/core/lib/refinery/plugins.rb | |
+++ b/core/lib/refinery/plugins.rb | |
@@ -1,5 +1,10 @@ | |
module Refinery | |
- class Plugins < Array | |
+ class Plugins | |
+ include Enumerable | |
+ |
diff --git a/core/lib/refinery/plugins.rb b/core/lib/refinery/plugins.rb | |
index 7f7efea..869286a 100644 | |
--- a/core/lib/refinery/plugins.rb | |
+++ b/core/lib/refinery/plugins.rb | |
@@ -1,11 +1,16 @@ | |
+require 'forwardable' | |
+ | |
module Refinery | |
class Plugins | |
include Enumerable |