init.rb
def sometimes_require_resource_filter(resource)
    if has_resource?(resource)
      if object(resource)
        true
      else
        record_not_found
      end
    else
      true
    end
  end
# Settings more likely to need to be changed I've put nearer the top.
#
# At some point it would be good to define a full dsl, but I've got other
# things to do...
#
# These methods can be redefined in the block passed to the
# +automatic_resources+ method:
#
# automatic_resources :collection, :category, :item do
#   def finder_method_on_resource(resource)
#     case resource
#     when 'item'
#       'find'
#     else
#       'find_by_param!'
#     end
#   end
# end
#
Settings more likely to need to be changed I've put nearer the top.
At some point it would be good to define a full dsl, but I've got other
things to do

These methods can be redefined in the block passed to the
+automatic_resources+ method.


Settings more likely to need to be changed I ' ve put nearer the top . At some point it would be good to define a full dsl but I ' ve got other things to do These methods can be redefined in the block passed to the + automatic_resources + method .
def sometimes_require_resource_filter(resource)
    if has_resource?(resource)
      if object(resource)
        true
      else
        record_not_found
      end
    else
      true
    end
  end
def sometimes_require_resource_filter ( resource ) if has_resource? ( resource ) if object ( resource ) true else record_not_found end else true end end
Settings more likely to need to be changed I've put nearer the top.
Settings more likely to need to be changed I ' ve put nearer the top .
resource