Sha256: 1731db65cd47f4f4833fd30ce2d21c04e292d40f696a7877b65bac6ab539118e

Contents?: true

Size: 327 Bytes

Versions: 28

Compression:

Stored size: 327 Bytes

Contents

module Workarea
  class Segment
    module Rules
      class Base
        include ApplicationDocument

        embedded_in :segment, class_name: 'Workarea::Segment', inverse_of: :rules
        delegate :slug, to: :class

        def self.slug
          name.demodulize.underscore.to_sym
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.6 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.5 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.4 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.3 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.2 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.1 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.0 app/models/workarea/segment/rules/base.rb
workarea-core-3.5.0.beta.1 app/models/workarea/segment/rules/base.rb