Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use dots instead of double colons.

  • Loading branch information...
commit b43926ffc0f999a54b4793d4f624ba16b26c3e89 1 parent 400d049
@gabebw gabebw authored
View
4 app/controllers/high_voltage/pages_controller.rb
@@ -1,7 +1,7 @@
class HighVoltage::PagesController < ApplicationController
unloadable
- layout Proc.new { |_| HighVoltage::layout }
+ layout Proc.new { |_| HighVoltage.layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{content_path}}
@@ -27,7 +27,7 @@ def clean_path
end
def content_path
- HighVoltage::content_path
+ HighVoltage.content_path
end
end
View
2  config/routes.rb
@@ -1,4 +1,4 @@
Rails.application.routes.draw do
- match "/#{HighVoltage::content_path}*id" => 'high_voltage/pages#show', :as => :page, :format => false
+ match "/#{HighVoltage.content_path}*id" => 'high_voltage/pages#show', :as => :page, :format => false
end
View
2  gemfiles/rails-3.0.13.gemfile.lock
@@ -1,5 +1,5 @@
PATH
- remote: /Users/mjankowski/Development/opensource/high_voltage
+ remote: /Users/gabe/thoughtbot/open-source/high_voltage
specs:
high_voltage (1.1.1)
View
2  gemfiles/rails-3.1.5.gemfile.lock
@@ -1,5 +1,5 @@
PATH
- remote: /Users/mjankowski/Development/opensource/high_voltage
+ remote: /Users/gabe/thoughtbot/open-source/high_voltage
specs:
high_voltage (1.1.1)
View
2  gemfiles/rails-3.2.5.gemfile.lock
@@ -1,5 +1,5 @@
PATH
- remote: /Users/mjankowski/Development/opensource/high_voltage
+ remote: /Users/gabe/thoughtbot/open-source/high_voltage
specs:
high_voltage (1.1.1)
View
12 spec/controllers/pages_controller_spec.rb
@@ -43,12 +43,12 @@
context "using custom layout" do
before(:all) do
- @original_layout = HighVoltage::layout
- HighVoltage::layout = "alternate"
+ @original_layout = HighVoltage.layout
+ HighVoltage.layout = "alternate"
end
after(:all) do
- HighVoltage::layout = @original_layout
+ HighVoltage.layout = @original_layout
end
describe "on GET to /pages/exists" do
@@ -63,12 +63,12 @@
context "using custom content path" do
before(:all) do
- @original_content_path = HighVoltage::content_path
- HighVoltage::content_path = "other_pages/"
+ @original_content_path = HighVoltage.content_path
+ HighVoltage.content_path = "other_pages/"
end
after(:all) do
- HighVoltage::content_path = @original_content_path
+ HighVoltage.content_path = @original_content_path
end
describe "on GET to /other_pages/also_exists" do
View
6 spec/routing/routes_spec.rb
@@ -30,13 +30,13 @@
context "using a custom content_path" do
before(:all) do
- @original_content_path = HighVoltage::content_path
- HighVoltage::content_path = "other_pages/"
+ @original_content_path = HighVoltage.content_path
+ HighVoltage.content_path = "other_pages/"
Rails.application.reload_routes!
end
after(:all) do
- HighVoltage::content_path = @original_content_path
+ HighVoltage.content_path = @original_content_path
Rails.application.reload_routes!
end
Please sign in to comment.
Something went wrong with that request. Please try again.