Skip to content

Commit

Permalink
Merge pull request #3093 from jaredbeck/add_lineno_to_stack_trace
Browse files Browse the repository at this point in the history
Add line numbers to stack trace
  • Loading branch information
parndt committed Feb 9, 2016
2 parents e731bca + b29dea5 commit 1282680
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/lib/refinery/crud.rb
Expand Up @@ -227,7 +227,7 @@ def #{singular_name}_params
:create_or_update_successful,
:create_or_update_unsuccessful,
:merge_position_into_params!
)
), __FILE__, __LINE__

# Methods that are only included when this controller is searchable.
if options[:searchable]
Expand All @@ -239,7 +239,7 @@ def index
render_partial_response?
end
)
), __FILE__, __LINE__
else
module_eval %(
def index
Expand All @@ -251,7 +251,7 @@ def index
render_partial_response?
end
)
), __FILE__, __LINE__
end

else
Expand All @@ -262,14 +262,14 @@ def index
render_partial_response?
end
)
), __FILE__, __LINE__
else
module_eval %(
def index
find_all_#{plural_name}
render_partial_response?
end
)
), __FILE__, __LINE__
end

end
Expand Down Expand Up @@ -333,7 +333,7 @@ def after_update_positions
end
protected :after_update_positions
)
), __FILE__, __LINE__
end

module_eval %(
Expand All @@ -351,7 +351,7 @@ def searchable?
#{options[:searchable]}
end
end
)
), __FILE__, __LINE__

end

Expand Down

0 comments on commit 1282680

Please sign in to comment.