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.4.3 lib/generators/helpers/orm_helpers.rb
http_utilities-1.4.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.4.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.4.0 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.9 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.8 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.7 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.6 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.5 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.4 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.3 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.1 lib/generators/helpers/orm_helpers.rb
http_utilities-1.3.0 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.7 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.6.5 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.6.4 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.6.3 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.6.2 lib/generators/helpers/orm_helpers.rb
http_utilities-1.2.6.1 lib/generators/helpers/orm_helpers.rb