class ActionDispatch::Routing::Mapper::Resources::SingletonResource
def default_actions
def default_actions if @api_only [:show, :create, :update, :destroy] else [:show, :create, :update, :destroy, :new, :edit] end end
def default_actions if @api_only [:show, :create, :update, :destroy] else [:show, :create, :update, :destroy, :new, :edit] end end