Sha256: fdcaadbe005e3ecc141f5cb05b8f86340d45a673dd7fb8bbd3136554ae6c97d1

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

module Bushido
  module Generators
    module OrmHelpers
      def model_contents
<<-CONTENT
  # Bind to a shared Bushido model
  bushido :customer_lead

CONTENT
      end

      def model_exists?
        File.exists?(File.join(destination_root, model_path))
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bushido-0.0.36 lib/generators/bushido/orm_helpers.rb
bushido-0.0.35 lib/generators/bushido/orm_helpers.rb
bushido-0.0.34 lib/generators/bushido/orm_helpers.rb
bushido-0.0.33 lib/generators/bushido/orm_helpers.rb
bushido-0.0.32 lib/generators/bushido/orm_helpers.rb
bushido-0.0.31 lib/generators/bushido/orm_helpers.rb
bushido-0.0.30 lib/generators/bushido/orm_helpers.rb