Skip to content

Commit

Permalink
master
Browse files Browse the repository at this point in the history
  • Loading branch information
marcometz committed Jun 16, 2014
1 parent ed1a5e3 commit a5413dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/active_admin/resource_dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def belongs_to(target, options = {})
end

# Scope this controller to some object which has a relation
# to the resource. Can either accept a block or a symbol
# to the resource. Can either accept a block or a symbol
# of a method to call.
#
# Eg:
Expand All @@ -18,17 +18,17 @@ def belongs_to(target, options = {})
# end
#
# Then every time we instantiate and object, it would call
#
#
# current_user.posts.build
#
# By default Active Admin will use the resource name to build a
# method to call as the association. If its different, you can
# method to call as the association. If its different, you can
# pass in the association_method as an option.
#
# scope_to :current_user, :association_method => :blog_posts
#
# will result in the following
#
#
# current_user.blog_posts.build
#
def scope_to(*args, &block)
Expand Down Expand Up @@ -94,7 +94,7 @@ def csv(options={}, &block)
#
# You can treat everything within the block as a standard Rails controller
# action.
#
#
def member_action(name, options = {}, &block)
config.member_actions << ControllerAction.new(name, options)
title = options.delete(:title)
Expand Down Expand Up @@ -155,7 +155,7 @@ def collection_action(name, options = {}, &block)
# Specify which actions to create in the controller
#
# Eg:
#
#
# ActiveAdmin.register Post do
# actions :index, :show
# end
Expand Down

0 comments on commit a5413dc

Please sign in to comment.