Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jensljungblad committed Dec 4, 2015
1 parent 547e8b3 commit e6d6b88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ class ArticlesController < ApplicationController

private

def resource_service
service = super
service.options[:some_param] = params[:some_param]
service
end
def resource_service
service = super
service.options[:some_param] = params[:some_param]
service
end
end
```

Expand All @@ -430,7 +430,7 @@ You can then access it from the service object:
class ArticleService
include Godmin::Resources::ResourceService

def some_method
def some_method
options[:some_param]
end
end
Expand Down

0 comments on commit e6d6b88

Please sign in to comment.