Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merges with options earlier in sequence and handles #164 #175

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/decent_exposure/exposure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def initialize(controller, name, fetch_block=nil, **options, &block)
merge_lambda_option :fetch, fetch_block if fetch_block
merge_lambda_option :fetch, block if block_given?

normalize_with_option

assert_singleton_option :fetch
assert_singleton_option :from
assert_incompatible_options_pair :parent, :model
Expand Down Expand Up @@ -74,7 +76,6 @@ def expose_helper_methods!

def normalize_options
normalize_fetch_option
normalize_with_option
normalize_id_option
normalize_model_option
normalize_build_params_option
Expand Down