Sha256: 927f14dfa8be162410181c4735268e5ca39ff531f8912654dca43a1f1ff7401b

Contents?: true

Size: 296 Bytes

Versions: 4

Compression:

Stored size: 296 Bytes

Contents

require 'orange-core/carton'

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

4 entries across 4 versions & 1 rubygems

Version Path
orange-0.1.2 lib/orange-more/administration/cartons/user.rb
orange-0.1.0 lib/orange-more/administration/cartons/user.rb
orange-0.0.15 lib/orange-more/administration/cartons/user.rb
orange-0.0.14 lib/orange-more/administration/cartons/user.rb