Sha256: 2c7744d2aef1a0ebb03dde07167be55debb794de534b783662359968a7c8ff03

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

#require 'activerecord-tableless'
class SuperUser < AbstractAdapter
  # An empty ActiveRecord association for the polymorphic identity on Role.
  # We could also just create a SuperUser table with one record to do this...
  has_no_table :database => :pretend_success

  def name
    'Admin'
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
introspective_grape-0.2.7 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.6 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.5 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.4 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.3 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.2 spec/dummy/app/models/super_user.rb
introspective_grape-0.2.0 spec/dummy/app/models/super_user.rb
introspective_grape-0.1.9 spec/dummy/app/models/super_user.rb
introspective_grape-0.0.4 spec/dummy/app/models/super_user.rb
introspective_grape-0.0.3 spec/dummy/app/models/super_user.rb