Closed anibali closed 13 years ago
I see what you are saying but I don't want to break the convention for just one setter. Currently all configuration works by having = and I am going to stick with it unless all of them are converted.
If you send another pull request with just README changes then I would appreciate that.
Thanks
Currently users specify security settings by passing a proc or lambda:
config.is_allowed_to_view = lambda {|controller| return true if Rails.env.development? }
My commit enables the usage of blocks directly:
config.is_allowed_to_view {|controller| return true if Rails.env.development? }
I could not get your test cases to run, so you probably want to make sure that this doesn't break anything yourself.