Sha256: a98e572e3855d9d644b0d88392822efb839ea6ca042c920bdab18c584dd74a8e

Contents?: true

Size: 624 Bytes

Versions: 6

Compression:

Stored size: 624 Bytes

Contents

##
# Outpost::Model
module Outpost
  module Model
    extend ActiveSupport::Concern
    extend ActiveSupport::Autoload

    autoload :Authentication
    autoload :Authorization
    autoload :Methods
    autoload :Identifier
    autoload :Routing
    autoload :Naming
    autoload :Serializer

    module ClassMethods
      def outpost_model(options={})
        include Methods, Identifier, Routing, Naming, Serializer

        # Convenience for setting options on the class.
        options.each do |option, value|
          send("#{option}=", value)
        end
      end
    end # ClassMethods
  end # Model
end # Outpost

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 lib/outpost/model.rb
outpost-cms-0.1.3 lib/outpost/model.rb
outpost-cms-0.1.2 lib/outpost/model.rb
outpost-cms-0.1.1 lib/outpost/model.rb
outpost-cms-0.1.0 lib/outpost/model.rb
outpost-cms-0.0.5 lib/outpost/model.rb