Sha256: 794f6ce8d5e727bc803ab05e1a3a37b6bb8e813ccaa9657bd908f4b1819c0e3a

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

module Orange
  class User < Orange::Carton
    id
    admin do
      title :name
      text :open_id
    end
    
    # Currently, all users allowed at all times.
    # Future support for roles to be built here.
    def allowed?(packet)
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
orange-0.0.13 lib/orange/cartons/user_carton.rb
orange-0.0.12 lib/orange/cartons/user_carton.rb
orange-0.0.10 lib/orange/cartons/user_carton.rb
orange-0.0.8 lib/orange/cartons/user_carton.rb
orange-0.0.7 lib/orange/cartons/user_carton.rb
orange-0.0.6 lib/orange/cartons/user_carton.rb