Sha256: 3654c42c85e7810702a3576085d64059f6fb0c4f3449e53c4434b94ad11111dd

Contents?: true

Size: 581 Bytes

Versions: 27

Compression:

Stored size: 581 Bytes

Contents

class AccessControlEntriesController < InheritedResources::Base
  ajax_loading
  before_filter :authenticate_user!
  belongs_to :user, :optional => true
  has_scope :by_resource, :using => [:resource_class, :resource_id]
  has_scope :by_role, :using=>[:role_id]
  has_scope :by_class, :using=>[:class]
  respond_to :html, :js

  def new_ace
    a = AccessControlEntry.new
    a.user_id = params[:user_id]
    a.role_id = params[:role_id]
    a.resource_class_name = params[:resource_class]
    a.options[:id] = params[:resource_id]
    return a
  end
  helper_method :new_ace
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
wheels-0.0.48 app/controllers/access_control_entries_controller.rb
wheels-0.0.47 app/controllers/access_control_entries_controller.rb
wheels-0.0.46 app/controllers/access_control_entries_controller.rb
wheels-0.0.45 app/controllers/access_control_entries_controller.rb
wheels-0.0.44 app/controllers/access_control_entries_controller.rb
wheels-0.0.43 app/controllers/access_control_entries_controller.rb
wheels-0.0.42 app/controllers/access_control_entries_controller.rb
wheels-0.0.41 app/controllers/access_control_entries_controller.rb
wheels-0.0.40 app/controllers/access_control_entries_controller.rb
wheels-0.0.39 app/controllers/access_control_entries_controller.rb
wheels-0.0.38 app/controllers/access_control_entries_controller.rb
wheels-0.0.37 app/controllers/access_control_entries_controller.rb
wheels-0.0.36 app/controllers/access_control_entries_controller.rb
wheels-0.0.35 app/controllers/access_control_entries_controller.rb
wheels-0.0.34 app/controllers/access_control_entries_controller.rb
wheels-0.0.33 app/controllers/access_control_entries_controller.rb
wheels-0.0.32 app/controllers/access_control_entries_controller.rb
wheels-0.0.31 app/controllers/access_control_entries_controller.rb
wheels-0.0.30 app/controllers/access_control_entries_controller.rb
wheels-0.0.29 app/controllers/access_control_entries_controller.rb