lib/extface/mapping.rb in extface-0.1.0 vs lib/extface/mapping.rb in extface-0.1.1
- old
+ new
@@ -11,11 +11,12 @@
# key to find interfaceable in controller, when
# :uuid then find_by! :uuid => params[:uuid]
# :shop_uuid then find_by! :uuid => params[:shop_uuid]
# :shop_id then find_by! :id => params[:shop_id]
@i_find_key = @i_param[/^(#{@name}_|)(\w+)/,2]
- raise "#{@i_klass.name} has no method #{@i_find_key}" unless @i_klass.new.respond_to? @i_find_key
- raise "Did you forget to add 'has_extface_devices' in #{@i_klass.name} ?" unless @i_klass.new.respond_to? :extface_devices
+ # FIXME not before schema load
+ #raise "#{@i_klass.name} has no method #{@i_find_key}" unless @i_klass.new.respond_to? @i_find_key
+ #raise "Did you forget to add 'has_extface_devices' in #{@i_klass.name} ?" unless @i_klass.new.respond_to? :extface_devices
@i_extra_module = options[:controller_include].to_s.constantize if options[:controller_include].present?
end
def mount_point
"#{name}_extface"
\ No newline at end of file