Sha256: db07b79b28e111c53f775e0f11aa0ebf3e5ed4d900a235e4b0f5d6526880b544

Contents?: true

Size: 299 Bytes

Versions: 40

Compression:

Stored size: 299 Bytes

Contents

module CanvasSync::Concerns
  module Account
    module Base
      extend ActiveSupport::Concern

      CanvasSync::Record.define_feature self, default: true

      class_methods do
        def root_account
          where(canvas_parent_account_id: nil).last
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
canvas_sync-0.21.0.beta5 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.21.0.beta4 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.21.0.beta3 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.21.0.beta2 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.21.0.beta1 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.20.5 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.20.4 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.20.3 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.1.beta2 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.1.beta1 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta10 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta9 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta8 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta7 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta6 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta5 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta4 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta3 lib/canvas_sync/concerns/account/base.rb
canvas_sync-0.19.0.beta2 lib/canvas_sync/concerns/account/base.rb