Can I write something like this inside model ?
if true
def instance_method
end
def class_method
end
end
As far as I know if statements do not introduce scope in Ruby 1.9.2 so you can use statements like that
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With