Sha256: 5ff82cedcbe5242ae80a5db1358b4d9d43c5e69cb66a08017c78cc81e5beee9d

Contents?: true

Size: 1.25 KB

Versions: 24

Compression:

Stored size: 1.25 KB

Contents

# encoding: utf-8
#
# Author:: Couchbase <info@couchbase.com>
# Copyright:: 2012 Couchbase, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'rails/generators/named_base'
require 'rails/generators/active_model'

module CouchbaseOrm #:nodoc:
    module Generators #:nodoc:

        class Base < ::Rails::Generators::NamedBase #:nodoc:

            def self.source_root
                @_couchbase_source_root ||=
                    File.expand_path("../#{base_name}/#{generator_name}/templates", __FILE__)
            end

            unless methods.include?(:module_namespacing)
                def module_namespacing(&block)
                    yield if block
                end
            end

        end

    end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
couchbase-orm-2.0.4 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-2.0.3 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-2.0.2 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-2.0.1 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-2.0.0 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-1.1.1 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-1.1.0 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-1.0.0 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.2.1 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.2.0 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.1.2 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.1.1 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.1.0 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.12 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.11 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.10 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.9 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.8 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.6 lib/rails/generators/couchbase_orm_generator.rb
couchbase-orm-0.0.5 lib/rails/generators/couchbase_orm_generator.rb