In that case I must still not have the config value correct in the
userSession model. changing it to
self.single_access_allowed_request_types = :all
seems to have fixed it, and the value is being set now. Is this what
it should be?
However, setting it to :all causes this error
undefined method `include?' for :all:Symbol
This is going to happen for
(single_access_allowed_request_types.include?
(controller.request_content_type)
and
single_access_allowed_request_types.include?(:all)
in the params_enabled? method in params.rb
On Apr 24, 2:46 am, Ben Johnson <
bjohn...@binarylogic.com> wrote:
> It is:
>
> def test_single_access_allowed_request_types
> UserSession.single_access_allowed_request_types = ["my
> request type"]
> assert_equal ["my request type"],
> UserSession.single_access_allowed_request_types
>
> UserSession.single_access_allowed_request_types ["application/
> rss+xml", "application/atom+xml"]
> assert_equal ["application/rss+xml", "application/atom+xml"],
> UserSession.single_access_allowed_request_types
> end
>
> I am testing it with passing tests.
>
> Ben Johnson
> Binary Logic
>
> W:
www.binarylogic.com