Sha256: 44574f666c38d423f84f5987b044e6b78ad141a69556a05ddbee2c237d25c6d4

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

require 'rails/generators/named_base'

module Views
  module Generators
    class ViewGenerator < Rails::Generators::NamedBase

      source_root File.expand_path('../templates', __FILE__)

      def create_fixture_file
        template 'view.sql', "db/views/#{table_name}.sql"
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
views-0.0.1 lib/generators/views/view_generator.rb