Use spaces instead of tabs.
git-svn-id: http://svn.redmine.org/redmine/trunk@12867 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1ad33134d3
commit
2585ed2e3b
|
@ -622,14 +622,14 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return the enabled module with the given name
|
# Return the enabled module with the given name
|
||||||
# or nil if the module is not enabled for the project
|
# or nil if the module is not enabled for the project
|
||||||
def enabled_module(name)
|
def enabled_module(name)
|
||||||
name = name.to_s
|
name = name.to_s
|
||||||
enabled_modules.detect {|m| m.name == name}
|
enabled_modules.detect {|m| m.name == name}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return true if the module with the given name is enabled
|
# Return true if the module with the given name is enabled
|
||||||
def module_enabled?(name)
|
def module_enabled?(name)
|
||||||
enabled_module(name).present?
|
enabled_module(name).present?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue