Skip to content

Commit

Permalink
Merge pull request crowbar#33 from dpaterson/pull-req-release-rails3a…
Browse files Browse the repository at this point in the history
…nddb-master-e0fa10770b

re-factor out intialize method in controllers [3/22]
  • Loading branch information
galthaus committed Aug 2, 2012
2 parents 1fe6662 + e0fa107 commit 9668e35
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions crowbar_framework/app/controllers/keystone_controller.rb
@@ -1,21 +1,26 @@
# Copyright 2011, Dell # Copyright 2011, Dell
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #


class KeystoneController < BarclampController class KeystoneController < BarclampController
def initialize before_filter :set_service_object
@service_object = KeystoneService.new logger
end def set_service_object
end @service_object = KeystoneService.new logger

end

private :set_service_object

end

0 comments on commit 9668e35

Please sign in to comment.