Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 514070e

Browse files
committedSep 28, 2013
Changed hash syntax to 1.9 format since we drop 1.8 support
1 parent 835b42b commit 514070e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require 'bundler'
66
Bundler::GemHelper.install_tasks
77

88

9-
task :default => :spec
9+
task default: :spec
1010

1111
desc 'Run specs'
1212
RSpec::Core::RakeTask.new

‎lib/nestive/layout_helper.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module LayoutHelper
6464
# ...
6565
# <% end %>
6666
#
67-
# @example Extending the `admin` layout in a view (you'll need to render the view with `:layout => nil`)
67+
# @example Extending the `admin` layout in a view (you'll need to render the view with `layout: nil`)
6868
#
6969
# # app/controllers/admin/posts_controller.rb
7070
# class Admin::PostsController < ApplicationController
@@ -73,7 +73,7 @@ module LayoutHelper
7373
#
7474
# # Or disable Rails' layout rendering per-controller
7575
# def index
76-
# render :layout => nil
76+
# render layout: nil
7777
# end
7878
# end
7979
#
@@ -91,7 +91,7 @@ def extends(layout, &block)
9191
# Capture the content to be placed inside the extended layout
9292
@view_flow.get(:layout).replace capture(&block)
9393

94-
render :file => layout
94+
render file: layout
9595
end
9696

9797
# Defines an area of content in your layout that can be modified or replaced by child layouts
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
class NestiveController < ApplicationController
22
def extended_one
3-
render :layout => 'extend_one'
3+
render layout: 'extend_one'
44
end
55

66
def extended_two
7-
render :layout => 'extend_two'
7+
render layout: 'extend_two'
88
end
99

1010
def extended_three
11-
render :layout => 'extend_one'
11+
render layout: 'extend_one'
1212
end
1313
end

0 commit comments

Comments
 (0)
Please sign in to comment.