Sha256: ed5127d3f6073fad5d26d61ccae54aa1673af5161a68a4184ac669a4c0350e4a

Contents?: true

Size: 645 Bytes

Versions: 56

Compression:

Stored size: 645 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'

module Cmor
  module Blog
    module Backend
      module Configuration
        def configure
          yield self
        end

        mattr_accessor :registered_controllers do
          lambda do
            [
              Cmor::Blog::Backend::PostsController
            ]
          end
        end

        mattr_accessor :registered_services do
          lambda do
            []
          end
        end

        mattr_accessor(:current_user_proc) { ->(controller) { controller.current_user } }
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_blog_backend-0.0.60.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.59.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.58.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.57.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.56.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.55.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.54.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.53.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.52.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.51.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.50.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.49.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.48.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.45.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.44.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.43.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.42.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.41.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.40.pre lib/cmor/blog/backend/configuration.rb
cmor_blog_backend-0.0.39.pre lib/cmor/blog/backend/configuration.rb