Sha256: 5e62390a20b76f882382b0e53f6cde137bad0389ff5807d8206a0881434ebca1
Contents?: true
Size: 513 Bytes
Versions: 15
Compression:
Stored size: 513 Bytes
Contents
module Railjet module Policy extend ::ActiveSupport::Concern include Railjet::Validator included do const_set(:Error, Class.new(Railjet::PolicyError)) end def initialize(context, object) @context, @object = context, object end attr_reader :context, :object module ClassMethods def context(*context_members) delegate *context_members, to: :context end def object(name) alias_method name, :object end end end end
Version data entries
15 entries across 15 versions & 1 rubygems