Created
August 27, 2014 17:31
-
-
Save yoon/b2dd3551dfc57d513968 to your computer and use it in GitHub Desktop.
custom surveyor survey model for disabling translations
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
module SurveyCustomMethods | |
def translation(locale_symbol) | |
{:title => self.title, :description => self.description} | |
end | |
end | |
class Survey < ActiveRecord::Base | |
include Surveyor::Models::SurveyMethods | |
include SurveyCustomMethods | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment