Sha256: 90663a7f87b17000318fa1b19e8702a436eba43eeaa2e2f45cd47088f5acf9cd

Contents?: true

Size: 309 Bytes

Versions: 42

Compression:

Stored size: 309 Bytes

Contents

module HttpUtilities
  module Generators
    module OrmHelpers
      
      def model_exists?(model)
        File.exists?(File.join(destination_root, model_path(model)))
      end

      def model_path(model)
        @model_path ||= File.join("app", "models", "#{model}.rb")
      end
      
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
http_utilities-1.2.6 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.5.3 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.5.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.5.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.5 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.4.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.4 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.3 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.0 lib/generators/helpers/orm_helpers.rb
http_utilities-1.1.5 lib/generators/helpers/orm_helpers.rb
http_utilities-1.1.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.1.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.1.0 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.9 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.8 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.7.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.7 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.6 lib/generators/helpers/orm_helpers.rb
http_utilities-1.0.5 lib/generators/helpers/orm_helpers.rb