Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.50 KB | None | 0 0
  1. (byebug) current_user.ability
  2. #<Ability:0x007fb7718907f8 @current_user=#<User id: 1, email: "bnash@emory.edu", created_at: "2017-06-06 18:58:16", updated_at: "2017-06-07 19:53:55", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil>, @user=#<User id: 1, email: "bnash@emory.edu", created_at: "2017-06-06 18:58:16", updated_at: "2017-06-07 19:53:55", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil>, @options={}, @cache=#<Blacklight::AccessControls::PermissionsCache:0x007fb771890780 @cache={}>, @user_groups=["public", "admin", "registered"], @rules=[#<CanCan::Rule:0x007fb790d94280 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[String], @conditions={}, @block=#<Proc:0x007fb790d942a8@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:41>>, #<CanCan::Rule:0x007fb790d8fdc0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x007fb790d8fde8@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:45>>, #<CanCan::Rule:0x007fb790d8fa50 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x007fb790d8fa78@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:49>>, #<CanCan::Rule:0x007fb790d8f6e0 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[String], @conditions={}, @block=#<Proc:0x007fb790d8f708@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:58>>, #<CanCan::Rule:0x007fb790d8f460 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x007fb790d8f488@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:62>>, #<CanCan::Rule:0x007fb790d8f168 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x007fb790d8f190@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:58>>, #<CanCan::Rule:0x007fb790d8ea60 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[String], @conditions={}, @block=#<Proc:0x007fb790d8eb00@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:47>>, #<CanCan::Rule:0x007fb790d8e588 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x007fb790d8e5d8@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:51>>, #<CanCan::Rule:0x007fb790d8e218 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x007fb790d8e240@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:66>>, #<CanCan::Rule:0x007fb790d8dea8 @match_all=false, @base_behavior=true, @actions=[:download], @subjects=[ActiveFedora::File], @conditions={}, @block=#<Proc:0x007fb790d8ded0@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hydra-access-controls-10.4.0/lib/hydra/ability.rb:73>>, #<CanCan::Rule:0x007fb787c39e70 @match_all=false, @base_behavior=true, @actions=[:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], @subjects=[Role(id: integer, name: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb787c39308 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[ActiveFedora::Base], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d38e88 @match_all=false, @base_behavior=true, @actions=[:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], @subjects=[Role(id: integer, name: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d389d8 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[ActiveFedora::Base], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d386e0 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[Hyrax::ClassifyConcern(curation_concern_type: Object)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d33f50 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[Hyrax::Operation(id: integer, status: string, operation_type: string, job_class: string, job_id: string, type: string, message: text, user_id: integer, parent_id: integer, lft: integer, rgt: integer, depth: integer, children_count: integer, created_at: datetime, updated_at: datetime)], @conditions={:user_id=>1}, @block=nil>, #<CanCan::Rule:0x007fb783d33c08 @match_all=false, @base_behavior=true, @actions=[:collect], @subjects=[:all], @conditions={}, @block=nil, @expanded_actions=[:collect]>, #<CanCan::Rule:0x007fb783d339b0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :toggle_trophy], @subjects=[User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string)], @conditions={:id=>1}, @block=nil>, #<CanCan::Rule:0x007fb783d33668 @match_all=false, @base_behavior=true, @actions=[:create, :destroy, :update], @subjects=[FeaturedWork(id: integer, order: integer, work_id: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d33320 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d33050 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[:admin_dashboard], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d32e48 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[TinymceAsset(id: integer, file: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d32b78 @match_all=false, @base_behavior=true, @actions=[:create, :update], @subjects=[ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d328a8 @match_all=false, @base_behavior=true, @actions=[:edit], @subjects=[SolrDocument], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d32678 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[Hyrax::Statistics], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d32088 @match_all=false, @base_behavior=true, @actions=[:transfer], @subjects=[String], @conditions={}, @block=#<Proc:0x007fb783d320b0@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hyrax-1.0.1/app/models/concerns/hyrax/ability.rb:55>>, #<CanCan::Rule:0x007fb783d31d90 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d31a98 @match_all=false, @base_behavior=true, @actions=[:accept], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:receiving_user_id=>1, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x007fb783d317f0 @match_all=false, @base_behavior=true, @actions=[:reject], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:receiving_user_id=>1, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x007fb783d31548 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:sending_user_id=>1, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x007fb783d31278 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime), BatchUploadItem], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d30b20 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime)], @conditions={:user=>#<User id: 1, email: "bnash@emory.edu", created_at: "2017-06-06 18:58:16", updated_at: "2017-06-07 19:53:55", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil>}, @block=nil>, #<CanCan::Rule:0x007fb783d308a0 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Hyrax::Feature(id: integer, key: string, enabled: boolean, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb783d305a8 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[AdminSet, Hyrax::PermissionTemplate(id: integer, admin_set_id: string, visibility: string, created_at: datetime, updated_at: datetime, release_date: date, release_period: string), Hyrax::PermissionTemplateAccess(id: integer, permission_template_id: integer, agent_type: string, agent_id: string, access: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x007fb78ea57740 @match_all=false, @base_behavior=true, @actions=[:create, :edit, :update, :destroy], @subjects=[Hyrax::PermissionTemplate(id: integer, admin_set_id: string, visibility: string, created_at: datetime, updated_at: datetime, release_date: date, release_period: string)], @conditions={}, @block=#<Proc:0x007fb78ea57768@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hyrax-1.0.1/app/models/concerns/hyrax/ability.rb:104>>, #<CanCan::Rule:0x007fb78ea57308 @match_all=false, @base_behavior=true, @actions=[:create, :edit, :update, :destroy], @subjects=[Hyrax::PermissionTemplateAccess(id: integer, permission_template_id: integer, agent_type: string, agent_id: string, access: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=#<Proc:0x007fb78ea57330@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hyrax-1.0.1/app/models/concerns/hyrax/ability.rb:108>>, #<CanCan::Rule:0x007fb78ea56f48 @match_all=false, @base_behavior=true, @actions=[:create, :destroy], @subjects=[Trophy(id: integer, user_id: integer, work_id: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=#<Proc:0x007fb78ea56f70@/Users/bess/.rvm/gems/ruby-2.3.3@hyrax/gems/hyrax-1.0.1/app/models/concerns/hyrax/ability.rb:121>>, #<CanCan::Rule:0x007fb78ea56868 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[FileSet, Collection, Etd], @conditions={}, @block=nil>], @rules_index={String=>[0, 3, 6, 25], ActiveFedora::Base=>[1, 5, 8, 11, 13], SolrDocument=>[2, 4, 7, 23], ActiveFedora::File=>[9], Role(id: integer, name: string)=>[10, 12], Hyrax::ClassifyConcern(curation_concern_type: Object)=>[14], Hyrax::Operation(id: integer, status: string, operation_type: string, job_class: string, job_id: string, type: string, message: text, user_id: integer, parent_id: integer, lft: integer, rgt: integer, depth: integer, children_count: integer, created_at: datetime, updated_at: datetime)=>[15], :all=>[16], User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string)=>[17], FeaturedWork(id: integer, order: integer, work_id: string, created_at: datetime, updated_at: datetime)=>[18], ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)=>[19, 22], :admin_dashboard=>[20], TinymceAsset(id: integer, file: string, created_at: datetime, updated_at: datetime)=>[21], Hyrax::Statistics=>[24], ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)=>[26, 27, 28, 29], Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime)=>[30, 31], BatchUploadItem=>[30], Hyrax::Feature(id: integer, key: string, enabled: boolean, created_at: datetime, updated_at: datetime)=>[32], AdminSet=>[33], Hyrax::PermissionTemplate(id: integer, admin_set_id: string, visibility: string, created_at: datetime, updated_at: datetime, release_date: date, release_period: string)=>[33, 34], Hyrax::PermissionTemplateAccess(id: integer, permission_template_id: integer, agent_type: string, agent_id: string, access: string, created_at: datetime, updated_at: datetime)=>[33, 35], Trophy(id: integer, user_id: integer, work_id: string, created_at: datetime, updated_at: datetime)=>[36], FileSet=>[37], Collection=>[37], Etd=>[37], Sipity::WorkflowResponsibility(id: integer, agent_id: integer, workflow_role_id: integer, created_at: datetime, updated_at: datetime)=>[], Kaminari::ConfigurationMethods=>[], Kaminari::ActiveRecordModelExtension=>[], Sipity::WorkflowResponsibility::GeneratedAssociationMethods=>[], #<#<Class:0x007fb783abdb18>:0x007fb783abdb90>=>[], ActiveRecord::Base=>[], GlobalID::Identification=>[], Kaminari::ActiveRecordExtension=>[], CanCan::ModelAdditions=>[], ActiveRecord::Suppressor=>[], ActiveRecord::SecureToken=>[], ActiveRecord::Store=>[], ActiveRecord::Serialization=>[], ActiveModel::Serializers::JSON=>[], ActiveModel::Serialization=>[], ActiveRecord::Reflection=>[], ActiveRecord::NoTouching=>[], ActiveRecord::TouchLater=>[], ActiveRecord::Transactions=>[], ActiveRecord::Aggregations=>[], ActiveRecord::NestedAttributes=>[], ActiveRecord::AutosaveAssociation=>[], ActiveModel::SecurePassword=>[], ActiveRecord::Associations=>[], ActiveRecord::Timestamp=>[], ActiveModel::Validations::Callbacks=>[], ActiveRecord::Callbacks=>[], ActiveRecord::AttributeMethods::Serialization=>[], ActiveRecord::AttributeMethods::Dirty=>[], ActiveModel::Dirty=>[], ActiveRecord::AttributeMethods::TimeZoneConversion=>[], ActiveRecord::AttributeMethods::PrimaryKey=>[], ActiveRecord::AttributeMethods::Query=>[], ActiveRecord::AttributeMethods::BeforeTypeCast=>[], ActiveRecord::AttributeMethods::Write=>[], ActiveRecord::AttributeMethods::Read=>[], ActiveRecord::Base::GeneratedAssociationMethods=>[], #<#<Class:0x007fb783855f10>:0x007fb783855f88>=>[], ActiveRecord::AttributeMethods=>[], ActiveModel::AttributeMethods=>[], ActiveRecord::Locking::Pessimistic=>[], ActiveRecord::Locking::Optimistic=>[], ActiveRecord::AttributeDecorators=>[], ActiveRecord::Attributes=>[], ActiveRecord::CounterCache=>[], ActiveRecord::Validations=>[], ActiveModel::Validations::HelperMethods=>[], ActiveSupport::Callbacks=>[], ActiveModel::Validations=>[], ActiveRecord::Integration=>[], ActiveModel::Conversion=>[], ActiveRecord::AttributeAssignment=>[], ActiveModel::AttributeAssignment=>[], ActiveModel::ForbiddenAttributesProtection=>[], ActiveRecord::Sanitization=>[], ActiveRecord::Scoping::Named=>[], ActiveRecord::Scoping::Default=>[], ActiveRecord::Scoping=>[], ActiveRecord::Inheritance=>[], ActiveRecord::ModelSchema=>[], ActiveRecord::ReadonlyAttributes=>[], ActiveRecord::Persistence=>[], ActiveRecord::Core=>[], ActiveSupport::ToJsonWithActiveSupportEncoder=>[], Object=>[], PP::ObjectMixin=>[], ActiveSupport::Dependencies::Loadable=>[], V8::Conversion::Object=>[], JSON::Ext::Generator::GeneratorMethods::Object=>[], ActiveSupport::Tryable=>[], Kernel=>[], BasicObject=>[], "Class"=>[]}, @aliased_actions={:read=>[:index, :show, :stats, :citation], :create=>[:new], :update=>[:edit, :versions, :file_manager]}, @expanded_actions={[:collect]=>[:collect]}>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement