Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Jan 21, 2013
2 parents 35d938b + 717ded7 commit 44f6779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ class HomeController < ApplicationController

def index



#the_search = Search.new( { :body_params => { :project_ids => [ 4 ],:site_ids => [ ],:audio_recording_ids => [ ] } } )
#params[:test1] = the_search
#params[:test2] = the_search.execute_query.all

#raise RuntimeError

the_format = params[:format]

if the_format.blank?
render
else
head :not_acceptable
end
end
end
2 changes: 1 addition & 1 deletion app/models/permission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Permission < ActiveRecord::Base
belongs_to :permissionable, :polymorphic => true

# attr
attr_accessible :level, :permissionable_type, :permissionable_id
attr_accessible :user_id, :level, :permissionable_type, :permissionable_id

# userstamp
stampable
Expand Down

0 comments on commit 44f6779

Please sign in to comment.