Created
August 27, 2014 17:32
-
-
Save yoon/1c30d1317494fbc0200f to your computer and use it in GitHub Desktop.
custom surveyor survey section 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 SurveySectionCustomMethods | |
def translation(locale) | |
{:title => self.title, :description => self.description} | |
end | |
end | |
class SurveySection < ActiveRecord::Base | |
include Surveyor::Models::SurveySectionMethods | |
include SurveySectionCustomMethods | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment