Sha256: 74ac59a7f0721a4432df6a7a3c773cfccc64ebb53997aadd95e9db29862346d7

Contents?: true

Size: 1.2 KB

Versions: 14

Compression:

Stored size: 1.2 KB

Contents

# Copyright (C) 2010  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

require 'rails/generators/named_base'
require 'rails/generators/migration'
require 'rails/generators/active_model'
require 'active_groonga'

module ActiveGroonga
  module Generators
    class Base < Rails::Generators::NamedBase #:nodoc:
      include Rails::Generators::Migration

      class << self
        def base_root
          File.dirname(__FILE__)
        end

        def next_migration_number(dirname) #:nodoc:
          Time.now.utc.strftime("%Y%m%d%H%M%S")
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activegroonga-4.2.1 lib/rails/generators/active_groonga.rb
activegroonga-4.2.0 lib/rails/generators/active_groonga.rb
activegroonga-4.0.0 lib/rails/generators/active_groonga.rb
activegroonga-2.1.4 lib/rails/generators/active_groonga.rb
activegroonga-2.1.3 lib/rails/generators/active_groonga.rb
activegroonga-2.1.2 lib/rails/generators/active_groonga.rb
activegroonga-2.1.1 lib/rails/generators/active_groonga.rb
activegroonga-1.0.7 lib/rails/generators/active_groonga.rb
activegroonga-1.0.6 lib/rails/generators/active_groonga.rb
activegroonga-1.0.5 lib/rails/generators/active_groonga.rb
activegroonga-1.0.4 lib/rails/generators/active_groonga.rb
activegroonga-1.0.3 lib/rails/generators/active_groonga.rb
activegroonga-1.0.1 lib/rails/generators/active_groonga.rb
activegroonga-1.0.0 lib/rails/generators/active_groonga.rb