diff --git a/lib/active_admin/resource_dsl.rb b/lib/active_admin/resource_dsl.rb index 72e5afb5bc8..d398e669788 100644 --- a/lib/active_admin/resource_dsl.rb +++ b/lib/active_admin/resource_dsl.rb @@ -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: @@ -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) @@ -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) @@ -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