Module: RepositoryManager

Defined in:
lib/generators/repository_manager/install_generator.rb,
lib/repository-manager.rb,
lib/repository_manager/engine.rb,
lib/repository_manager/version.rb,
lib/repository_manager/exceptions.rb,
lib/repository_manager/has_repository.rb

Overview

:nodoc:

Defined Under Namespace

Modules: HasRepository Classes: AuthorisationException, Engine, InstallGenerator, NestedSharingException, RepositoryManagerException

Constant Summary collapse

VERSION =
'0.0.11'
@@default_repo_item_permissions =
{ can_read: true, can_create: false, can_update:false, can_delete:false, can_share: false }
@@default_sharing_permissions =
{ can_add: false, can_remove: false }
@@default_zip_path =
true
@@accept_nested_share =
false

Class Method Summary collapse

Class Method Details

.protected_attributes?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/repository-manager.rb', line 22

def protected_attributes?
  Rails.version < '4' || defined?(ProtectedAttributes)
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



18
19
20
# File 'lib/repository-manager.rb', line 18

def setup
  yield self
end