Sha256: 84aee1028073f53d94ce0dd07fdce3c5a0ca91876c6547eac64830afeb2f3d8d

Contents?: true

Size: 597 Bytes

Versions: 14

Compression:

Stored size: 597 Bytes

Contents

module Devise
  module Generators
    module OrmHelpers
      def model_contents
<<-CONTENT
  # Include default devise modules. Others available are:
  # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

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

14 entries across 14 versions & 3 rubygems

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.2.1/lib/generators/devise/orm_helpers.rb
devise-1.4.2 lib/generators/devise/orm_helpers.rb
devise-1.4.1 lib/generators/devise/orm_helpers.rb
devise-1.3.4 lib/generators/devise/orm_helpers.rb
devise-1.3.3 lib/generators/devise/orm_helpers.rb
devise-1.3.2 lib/generators/devise/orm_helpers.rb
devise-1.3.1 lib/generators/devise/orm_helpers.rb
devise-1.3.0 lib/generators/devise/orm_helpers.rb
devise-1.2.1 lib/generators/devise/orm_helpers.rb
devise-1.2.0 lib/generators/devise/orm_helpers.rb
devise-jdguyot-1.2.rc3 lib/generators/devise/orm_helpers.rb
devise-1.2.rc2 lib/generators/devise/orm_helpers.rb
devise-jdguyot-1.2.rc2 lib/generators/devise/orm_helpers.rb
devise-jdguyot-1.2.rc lib/generators/devise/orm_helpers.rb