-
-
Save anonymous/0bfbaf86a9480d8b3102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find_by_year_and_month(year, month) # find_by_year_and_month("2015", 3) | |
if found_year = RTMYearName.find_by( year: year.to_s ) | |
find_by mm_year_plan_id: found_year.id, month_nr: month.to_i #Problem on this line | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment